From a5246fbccaf3a4afd4c9c5982b331b335b69f2ff Mon Sep 17 00:00:00 2001 From: ser Date: Thu, 10 Jun 2004 02:01:04 +0000 Subject: - git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/text.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/rexml/text.rb') diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index 388256ac8..3e5fcc23b 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -218,6 +218,14 @@ module REXML writer << s end + # FIXME + # This probably won't work properly + def xpath + path = @parent.xpath + path += "/text()" + return path + end + # Writes out text, substituting special characters beforehand. # +out+ A String, IO, or any other object supporting <<( String ) # +input+ the text to substitute and the write out -- cgit