Class: Dry::Initializer::Scope
- Inherits:
-
Object
- Object
- Dry::Initializer::Scope
- Defined in:
- lib/dry/initializer/scope.rb
Overview
Shared scope for several params and options
Instance Method Summary collapse
-
#option(name, **options) ⇒ self
Defines option with shared settings.
-
#param(name, **options) ⇒ self
Defines param with shared settings.
Instance Method Details
#option(name, **options) ⇒ self
Defines option with shared settings
20 21 22 |
# File 'lib/dry/initializer/scope.rb', line 20 def option(name, **) @klass.option name, @options.merge() end |
#param(name, **options) ⇒ self
Defines param with shared settings
10 11 12 |
# File 'lib/dry/initializer/scope.rb', line 10 def param(name, **) @klass.param name, @options.merge() end |