Class: Omakase::Executor::Answer

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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

#printedObject (readonly)

Returns the value of attribute printed

Returns:

  • (Object)

    the current value of printed



17
18
19
# File 'lib/omakase/executor.rb', line 17

def printed
  @printed
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



17
18
19
# File 'lib/omakase/executor.rb', line 17

def value
  @value
end