mustmodify / valuable

quick ruby modeling -- basically attr_accessor with default values, light-weight casting, and a constructor
http://valuable.mustmodify.com/
MIT License
72 stars 3 forks source link

What happens when you pass a hash to a collection? #12

Open mustmodify opened 9 years ago

mustmodify commented 9 years ago
class Unit
  has_collection :conversions, :klass => Conversion
end

Unit.new(:conversions => {:att => val})

This should blow up because it isn't an array. Or work. Anything but resulting in nil.