Module: Signum::Options::ClassMethods
- Defined in:
- lib/signum/configuration.rb
Instance Method Summary collapse
Instance Method Details
#option(name, default: nil) ⇒ Object
6 7 8 9 10 |
# File 'lib/signum/configuration.rb', line 6 def option(name, default: nil) attr_accessor(name) schema[name] = default end |
#schema ⇒ Object
12 13 14 |
# File 'lib/signum/configuration.rb', line 12 def schema @schema ||= {} end |