diff options
author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-10 02:01:04 +0000 |
---|---|---|
committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-10 02:01:04 +0000 |
commit | 3289dfc78b4c5051b0079217a193ce50d5349506 (patch) | |
tree | 564ff1057a5341fa9b28cf03218851f8d0255f4f /lib/rexml/attribute.rb | |
parent | f2b75020ba193b6d20788c800fde583ca8e900d5 (diff) | |
download | ruby-3289dfc78b4c5051b0079217a193ce50d5349506.tar.gz |
-
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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: |