Class: Kapusta::Compiler::Language::IterationForm
- Inherits:
-
Struct
- Object
- Struct
- Kapusta::Compiler::Language::IterationForm
- Defined in:
- lib/kapusta/compiler/language.rb
Instance Attribute Summary collapse
-
#bindings ⇒ Object
Returns the value of attribute bindings.
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
Instance Attribute Details
#bindings ⇒ Object
Returns the value of attribute bindings
58 59 60 |
# File 'lib/kapusta/compiler/language.rb', line 58 def bindings @bindings end |
#body ⇒ Object
Returns the value of attribute body
58 59 60 |
# File 'lib/kapusta/compiler/language.rb', line 58 def body @body end |
Instance Method Details
#binding_pats ⇒ Object
63 |
# File 'lib/kapusta/compiler/language.rb', line 63 def binding_pats = items[0...-1] || [] |
#items ⇒ Object
59 |
# File 'lib/kapusta/compiler/language.rb', line 59 def items = bindings.is_a?(Vec) ? bindings.items : [] |
#iter_expr ⇒ Object
61 |
# File 'lib/kapusta/compiler/language.rb', line 61 def iter_expr = items.last |