Class: Kapusta::Vec
- Inherits:
-
Object
- Object
- Kapusta::Vec
- Defined in:
- lib/kapusta/ast.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#multiline_source ⇒ Object
Returns the value of attribute multiline_source.
Instance Method Summary collapse
-
#initialize(items) ⇒ Vec
constructor
A new instance of Vec.
- #to_ary ⇒ Object
Constructor Details
#initialize(items) ⇒ Vec
Returns a new instance of Vec.
81 82 83 84 |
# File 'lib/kapusta/ast.rb', line 81 def initialize(items) @items = items @multiline_source = false end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
78 79 80 |
# File 'lib/kapusta/ast.rb', line 78 def items @items end |
#multiline_source ⇒ Object
Returns the value of attribute multiline_source.
79 80 81 |
# File 'lib/kapusta/ast.rb', line 79 def multiline_source @multiline_source end |
Instance Method Details
#to_ary ⇒ Object
86 87 88 |
# File 'lib/kapusta/ast.rb', line 86 def to_ary @items end |