Class: Saxerator::Builder::ArrayElement
- Inherits:
-
Array
- Object
- Array
- Saxerator::Builder::ArrayElement
- Defined in:
- lib/saxerator/builder/array_element.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(arr = [], name = nil, attributes = nil) ⇒ ArrayElement
constructor
A new instance of ArrayElement.
- #to_a ⇒ Object
Constructor Details
#initialize(arr = [], name = nil, attributes = nil) ⇒ ArrayElement
Returns a new instance of ArrayElement.
8 9 10 11 12 |
# File 'lib/saxerator/builder/array_element.rb', line 8 def initialize(arr = [], name = nil, attributes = nil) @name = name @attributes = attributes super(arr) end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/saxerator/builder/array_element.rb', line 6 def attributes @attributes end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/saxerator/builder/array_element.rb', line 6 def name @name end |
Instance Method Details
#to_a ⇒ Object
14 |
# File 'lib/saxerator/builder/array_element.rb', line 14 def to_a; self end |