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

has_value should accept blocks #20

Open mustmodify opened 9 years ago

mustmodify commented 9 years ago
class AppConfig < Valuable
  has_value :stripe do
    has_value :secret_key
    has_value :public_key
    has_value :show_test_instructions
  end
end