Module: Heist::Scheme::Vector
- Defined in:
- lib/parser/nodes.rb
Overview
A Vector
is an array-like structure if integer-indexed cells
Instance Method Summary collapse
Instance Method Details
#cells ⇒ Object
64 65 66 |
# File 'lib/parser/nodes.rb', line 64 def cells @cells ||= elements[2].elements end |
#eval ⇒ Object
60 61 62 |
# File 'lib/parser/nodes.rb', line 60 def eval Runtime::Vector.new(cells) { |cell| cell.eval } end |