Class: ReturnValue

Inherits:
Object
  • Object
show all
Defined in:
lib/nodes.rb

Overview

Wrapper class for specifying that a value is a return value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ ReturnValue

Returns a new instance of ReturnValue.



227
228
229
# File 'lib/nodes.rb', line 227

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



226
227
228
# File 'lib/nodes.rb', line 226

def value
  @value
end