Class: RubyLisp::Value
- Inherits:
-
Object
- Object
- RubyLisp::Value
- Defined in:
- lib/rubylisp/types.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
- #to_s ⇒ Object
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
#value ⇒ Object
Returns the value of attribute value.
61 62 63 |
# File 'lib/rubylisp/types.rb', line 61 def value @value end |
Instance Method Details
#to_s ⇒ Object
67 68 69 |
# File 'lib/rubylisp/types.rb', line 67 def to_s @value.to_s end |