From d11370265cf853ade55895c4fceffef0dc75c3bf Mon Sep 17 00:00:00 2001 From: gemmaro Date: Sat, 10 Jun 2023 00:42:12 +0000 Subject: [PATCH] doc: Fix some method links in tutorial (#99) --- doc/rexml/tutorial.rdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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')