Class: RubyLisp::Value

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

Direct Known Subclasses

Symbol

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Value

Returns a new instance of Value.



63
64
65
# File 'lib/rubylisp/types.rb', line 63

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



61
62
63
# File 'lib/rubylisp/types.rb', line 61

def value
  @value
end

Instance Method Details

#to_sObject



67
68
69
# File 'lib/rubylisp/types.rb', line 67

def to_s
  @value.to_s
end