Class: Musa::Series::Constructors::FromArray
- Inherits:
-
Object
- Object
- Musa::Series::Constructors::FromArray
- Defined in:
- lib/musa-dsl/series/main-serie-constructors.rb
Instance Attribute Summary collapse
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(values = nil, extends = nil) ⇒ FromArray
constructor
A new instance of FromArray.
Constructor Details
#initialize(values = nil, extends = nil) ⇒ FromArray
Returns a new instance of FromArray.
141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/musa-dsl/series/main-serie-constructors.rb', line 141 def initialize(values = nil, extends = nil) @values = values mark_as_prototype! x = self extends.arrayfy.each do |e| x.extend(e) end init end |
Instance Attribute Details
#values ⇒ Object
Returns the value of attribute values.
153 154 155 |
# File 'lib/musa-dsl/series/main-serie-constructors.rb', line 153 def values @values end |