Class: Omakase::Executor::Answer
- Inherits:
-
Data
- Object
- Data
- Omakase::Executor::Answer
- Defined in:
- lib/omakase/executor.rb
Overview
What finish(value) handed back: the answer as a Ruby value, not as text,
and whatever the code printed on the way there. printed defaults, so a
replacement executor that only knows the value still satisfies the seam.
Instance Attribute Summary collapse
-
#printed ⇒ Object
readonly
Returns the value of attribute printed.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, printed: "") ⇒ Answer
constructor
A new instance of Answer.
Constructor Details
#initialize(value:, printed: "") ⇒ Answer
Returns a new instance of Answer.
18 |
# File 'lib/omakase/executor.rb', line 18 def initialize(value:, printed: "") = super |
Instance Attribute Details
#printed ⇒ Object (readonly)
Returns the value of attribute printed
17 18 19 |
# File 'lib/omakase/executor.rb', line 17 def printed @printed end |
#value ⇒ Object (readonly)
Returns the value of attribute value
17 18 19 |
# File 'lib/omakase/executor.rb', line 17 def value @value end |