Module: Yaoc::Helper::StructHashConstructor::Initializer
- Defined in:
- lib/yaoc/helper/struct_hash_constructor.rb
Instance Method Summary collapse
Instance Method Details
#initialize(params = {}) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/yaoc/helper/struct_hash_constructor.rb', line 9 def initialize(params={}) super() params.each do |attr, value| self.public_send("#{attr}=", value) end if params end |