Class: Remap::Static::Option

Inherits:
Concrete
  • Object
show all
Defined in:
lib/remap/static/option.rb

Instance Method Summary collapse

Instance Method Details

#call(state) ⇒ State

Selects #value from Remap::Static::Option.statestate#params

Parameters:

Returns:



15
16
17
18
19
# File 'lib/remap/static/option.rb', line 15

def call(state)
  state.set state.options.fetch(name) {
    return state.problem("Option [#{name}] not found in [#{state.options.inspect}]")
  }
end