Class: Kapusta::Compiler::Language::LetForm
- Inherits:
-
Struct
- Object
- Struct
- Kapusta::Compiler::Language::LetForm
- 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
37 38 39 |
# File 'lib/kapusta/compiler/language.rb', line 37 def bindings @bindings end |
#body ⇒ Object
Returns the value of attribute body
37 38 39 |
# File 'lib/kapusta/compiler/language.rb', line 37 def body @body end |
Instance Method Details
#binding_pairs ⇒ Object
38 39 40 41 42 |
# File 'lib/kapusta/compiler/language.rb', line 38 def binding_pairs return [] unless bindings.is_a?(Vec) bindings.items.each_slice(2).map { |pattern, value| [pattern, value] } end |