class XML::Smart::Dom::Attribute
Public Class Methods
Source
# File lib/xml/smart_domattribute.rb, line 6 def initialize(attr) @node = attr end
Public Instance Methods
Source
# File lib/xml/smart_domattribute.rb, line 22 def ==(other) return false unless other return false unless other.respond_to?(:unique_id) unique_id == other.unique_id end
Source
# File lib/xml/smart_domattribute.rb, line 29 def parent; Dom::smart_helper(@node.parent); end
Source
# File lib/xml/smart_domattribute.rb, line 27 def unique_id; @node.pointer_id; end
Source
# File lib/xml/smart_domattribute.rb, line 19 def value; @node.content; end
Also aliased as: text
Source
# File lib/xml/smart_domattribute.rb, line 20 def value=(val); @node.content = val; end
Also aliased as: text=