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.



191
192
193
194
# File 'lib/milk_tea/core/compile_time.rb', line 191

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



189
190
191
# File 'lib/milk_tea/core/compile_time.rb', line 189

def value
  @value
end