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

don't cast strings to_i #14

Closed mustmodify closed 4 years ago

mustmodify commented 9 years ago

class Player has_value :number, :klass => :integer end

Player.new(number: 'abc')

this results in 0 ... fix that.