Class: Saxerator::Builder::ArrayElement

Inherits:
Array
  • Object
show all
Defined in:
lib/saxerator/builder/array_element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



6
7
8
# File 'lib/saxerator/builder/array_element.rb', line 6

def attributes
  @attributes
end

#nameObject

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_aObject



14
# File 'lib/saxerator/builder/array_element.rb', line 14

def to_a; self end