Class: Burner::Library::Value::Static
- Inherits:
-
JobWithRegister
- Object
- Job
- JobWithRegister
- Burner::Library::Value::Static
- Defined in:
- lib/burner/library/value/static.rb
Overview
Constant Summary
Constants inherited from JobWithRegister
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from JobWithRegister
Attributes inherited from Job
Instance Method Summary collapse
-
#initialize(name: '', register: DEFAULT_REGISTER, value: nil) ⇒ Static
constructor
A new instance of Static.
- #perform(_output, payload) ⇒ Object
Methods included from Util::Arrayable
Constructor Details
#initialize(name: '', register: DEFAULT_REGISTER, value: nil) ⇒ Static
Returns a new instance of Static.
20 21 22 23 24 25 26 |
# 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 |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
18 19 20 |
# File 'lib/burner/library/value/static.rb', line 18 def value @value end |
Instance Method Details
#perform(_output, payload) ⇒ Object
28 29 30 |
# File 'lib/burner/library/value/static.rb', line 28 def perform(_output, payload) payload[register] = value end |