Module: Lono::Configset::Register::Dsl
- Included in:
- Base
- Defined in:
- lib/lono/configset/register/dsl.rb
Instance Method Summary collapse
Instance Method Details
#configset(*args) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/lono/configset/register/dsl.rb', line 3 def configset(*args) = args.last.is_a?(Hash) ? args.pop : {} registry = Lono::Configset::Registry.new(args, ) self.class.append(registry) store_for_validation(registry) end |
#source(v) ⇒ Object
DSL
11 12 13 |
# File 'lib/lono/configset/register/dsl.rb', line 11 def source(v) self.class.source = v end |