class Burner::Library::Value::Static
Arbitrarily set the value of a register.
Expected Payload input: anything. Payload output: whatever value was specified in this job.
Attributes
value[R]
Public Class Methods
new(name: '', register: DEFAULT_REGISTER, value: nil)
click to toggle source
Calls superclass method
Burner::JobWithRegister::new
# File lib/burner/library/value/static.rb, line 20 def initialize(name: '', register: DEFAULT_REGISTER, value: nil) super(name: name, register: register) @value = value freeze end
Public Instance Methods
perform(_output, payload)
click to toggle source
# File lib/burner/library/value/static.rb, line 28 def perform(_output, payload) payload[register] = value end