Class: Burner::Library::Param::ToRegister
- Inherits:
-
Base
- Object
- Job
- JobWithRegister
- Base
- Burner::Library::Param::ToRegister
- Defined in:
- lib/burner/library/param/to_register.rb
Overview
Copy a param key’s value into a register.
Expected Payload.param(param_key) input: anything. Payload output: whatever value was specified as the param_key’s value.
Constant Summary
Constants inherited from JobWithRegister
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from JobWithRegister
Attributes inherited from Job
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from JobWithRegister
Methods inherited from Job
Methods included from Util::Arrayable
Constructor Details
This class inherits a constructor from Burner::Library::Param::Base
Instance Method Details
#perform(output, payload) ⇒ Object
20 21 22 23 24 |
# File 'lib/burner/library/param/to_register.rb', line 20 def perform(output, payload) output.detail("Pushing value to register: #{register} from param: #{param_key}") payload[register] = payload.param(param_key) end |