Class: Burner::Library::Param::ToRegister

Inherits:
Base show all
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

JobWithRegister::BLANK

Instance Attribute Summary

Attributes inherited from Base

#param_key

Attributes inherited from JobWithRegister

#register

Attributes inherited from Job

#name

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods inherited from JobWithRegister

#initialize

Methods inherited from Job

#initialize

Methods included from Util::Arrayable

#array

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