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

set new default value for inherited attributes #8

Open mustmodify opened 9 years ago

mustmodify commented 9 years ago

use case:

class Interface
  has_value :medium
end

class TestInterface < Interface
  default_for :medium, TestMedium.new(...)
end