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

research the viability of providing a lambda, proc or anonymous block for accessors #9

Open mustmodify opened 9 years ago

mustmodify commented 9 years ago

example use case:

class Interface
  has_value :messages do |current_value|
    if( current_value.messed_up )
      other_default_value
    end
  end
end