Class: Burner::Library::Echo
Overview
Output a simple message to the output.
Note: this does not use Payload#registers.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from Job
Instance Method Summary collapse
-
#initialize(message: '', name: '') ⇒ Echo
constructor
A new instance of Echo.
- #perform(output, payload) ⇒ Object
Methods included from Util::Arrayable
Constructor Details
#initialize(message: '', name: '') ⇒ Echo
Returns a new instance of Echo.
18 19 20 21 22 23 24 |
# File 'lib/burner/library/echo.rb', line 18 def initialize(message: '', name: '') super(name: name) @message = .to_s freeze end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
16 17 18 |
# File 'lib/burner/library/echo.rb', line 16 def @message end |
Instance Method Details
#perform(output, payload) ⇒ Object
26 27 28 29 30 |
# File 'lib/burner/library/echo.rb', line 26 def perform(output, payload) = job_string_template(, output, payload) output.detail() end |