Class: MilkTea::CompileTime::ReturnOutcome

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/compile_time.rb

Overview

Carries the value of a return statement out of the block evaluator as an ordinary value instead of an exception; callers unwrap it when present.

Instance Attribute Summary collapse

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



11
12
13
# File 'lib/milk_tea/core/compile_time.rb', line 11

def value
  @value
end