Method: Unity::DerivedUnit#initialize

Defined in:
lib/unity/lookup/derived_unit.rb

#initialize(attributes = {}) ⇒ DerivedUnit

Returns a new instance of DerivedUnit.



15
16
17
18
19
20
# File 'lib/unity/lookup/derived_unit.rb', line 15

def initialize(attributes = {})
  attributes.each do |name, value|
    send("#{name}=", value)
  end
  super
end