Class: EtsiiGem::VectorDisperso

Inherits:
Object
  • Object
show all
Defined in:
lib/ETSII_GEM.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h = {}) ⇒ VectorDisperso

Returns a new instance of VectorDisperso.



208
209
210
211
# File 'lib/ETSII_GEM.rb', line 208

def initialize (h = {})
                  @vector = Hash.new(0)
          @vector = @vector.merge!(h)
end

Instance Attribute Details

#vectorObject (readonly)

Returns the value of attribute vector.



206
207
208
# File 'lib/ETSII_GEM.rb', line 206

def vector
  @vector
end

Instance Method Details

#[](i) ⇒ Object



213
214
215
# File 'lib/ETSII_GEM.rb', line 213

def [](i)
   @vector[i]
end