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

can't set default value for collection #26

Closed mustmodify closed 8 years ago

mustmodify commented 8 years ago
class Person
  has_collection :favorite_colors, :default => [:red, :blue]
end

=> Person.new.favorite_colors
>> []