Exception: MilkTea::CompileTime::ReturnValue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ ReturnValue

Returns a new instance of ReturnValue.



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

def initialize(value)
  @value = value
  super("return #{value.inspect}")
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end