Module: Objector
- Defined in:
- lib/objector.rb,
lib/objector/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Method Summary collapse
Instance Method Details
#initialize(args = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/objector.rb', line 4 def initialize(args = {}) args.each do |k, v| if has_attribute?(k) result = v.instance_of?(Array) ? build_all_from_array(k, v) : instantiate_object(v, k) add(k, result) end end end |