diff options
Diffstat (limited to 'lib/rexml/attribute.rb')
-rw-r--r-- | lib/rexml/attribute.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb index 9eb3c211ea..a5a58055b8 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: |