Module: Vorpal::Util::HashInitialization
- Included in:
- Config::BelongsToConfig, Config::HasManyConfig, Config::HasOneConfig
- Defined in:
- lib/vorpal/util/hash_initialization.rb
Instance Method Summary collapse
Instance Method Details
#initialize(attrs = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/vorpal/util/hash_initialization.rb', line 5 def initialize(attrs={}) attrs.each do |k,v| instance_variable_set("@#{k}", v) end end |