Method: REXML::Attributes#initialize
- Defined in:
- lib/rexml/element.rb
#initialize(element) ⇒ Attributes
:call-seq:
new(element)
Creates and returns a new REXML::Attributes object. The element given by argument element is stored, but its own attributes are not modified:
ele = REXML::Element.new('foo')
attrs = REXML::Attributes.new(ele)
attrs.object_id == ele.attributes.object_id # => false
Other instance methods in class REXML::Attributes may refer to:
-
element.document. -
element.prefix. -
element.expanded_name.
2150 2151 2152 |
# File 'lib/rexml/element.rb', line 2150 def initialize element @element = element end |