Class: Nendo::LispValues
- Inherits:
-
Object
- Object
- Nendo::LispValues
- Defined in:
- lib/nendo/ruby/types.rb
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(arr) ⇒ LispValues
constructor
A new instance of LispValues.
Constructor Details
#initialize(arr) ⇒ LispValues
Returns a new instance of LispValues.
166 167 168 169 170 171 172 |
# File 'lib/nendo/ruby/types.rb', line 166 def initialize( arr ) if 1 == arr.size raise ArgumentError, "Error: LispValues object expects 0 or 2+ length of array" else @values = arr end end |
Instance Attribute Details
#values ⇒ Object (readonly)
Returns the value of attribute values.
173 174 175 |
# File 'lib/nendo/ruby/types.rb', line 173 def values @values end |