Class: Remap::Static::Option
- Inherits:
-
Concrete
- Object
- Concrete
- Remap::Static::Option
- Defined in:
- lib/remap/static/option.rb
Instance Method Summary collapse
-
#call(state) ⇒ State
Selects #value from statestate#params.
Instance Method Details
#call(state) ⇒ State
Selects #value from Remap::Static::Option.statestate#params
15 16 17 18 19 |
# File 'lib/remap/static/option.rb', line 15 def call(state) state.set state..fetch(name) { return state.problem("Option [#{name}] not found in [#{state..inspect}]") } end |