Skip to content

Commit

Permalink
doc: Fix some method links in tutorial (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmaro committed Jun 10, 2023
1 parent 957e50e commit d113702
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/rexml/tutorial.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <tt>#size - 1</tt> if there is no such child:

ele = doc.root # => <bookstore> ... </>
Expand All @@ -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
Expand Down Expand Up @@ -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') # => <foo/>
ele.add_namespace('bar')
Expand Down

0 comments on commit d113702

Please sign in to comment.