Class: Musa::Series::Constructors::FromArray

Inherits:
Object
  • Object
show all
Defined in:
lib/musa-dsl/series/main-serie-constructors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valuesObject

Returns the value of attribute values.



153
154
155
# File 'lib/musa-dsl/series/main-serie-constructors.rb', line 153

def values
  @values
end