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/attribute.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/rexml/attribute.rb') diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb index 9eb3c211e..a5a58055b 100644 --- a/lib/rexml/attribute.rb +++ b/lib/rexml/attribute.rb @@ -152,6 +152,12 @@ module REXML write( rv ) rv end + + def xpath + path = @element.xpath + path += "/@#{self.expanded_name}" + return path + end end end #vim:ts=2 sw=2 noexpandtab: -- cgit