diff --git a/doc/rexml/tutorial.rdoc b/doc/rexml/tutorial.rdoc index 14c5dd3a..c85a70d0 100644 --- a/doc/rexml/tutorial.rdoc +++ b/doc/rexml/tutorial.rdoc @@ -554,7 +554,7 @@ An element may have: [Index of Child] - Use method REXML::Element#index to retrieve the zero-based child index + Use method REXML::Parent#index to retrieve the zero-based child index of the given object, or #size - 1 if there is no such child: ele = doc.root # => ... @@ -570,7 +570,7 @@ An element may have: [Element Children] - Use method REXML::.has_elements? to retrieve whether the element + Use method REXML::Element#has_elements? to retrieve whether the element has element children: doc.root.has_elements? # => true @@ -1222,7 +1222,7 @@ Delete an attribute by name with method REXML::Element#delete_attribute: ele.delete_attribute('bam') ele.attributes # => {"bar"=>bar='baz'} -Delete a namespace with method REXML::delete_namespace: +Delete a namespace with method REXML::Element#delete_namespace: ele = Element.new('foo') # => ele.add_namespace('bar')