Class: Faust2Ruby::AST::With
Overview
With clause: expr with { defs }
Instance Attribute Summary collapse
-
#definitions ⇒ Object
readonly
Returns the value of attribute definitions.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(expression, definitions, **opts) ⇒ With
constructor
A new instance of With.
Constructor Details
#initialize(expression, definitions, **opts) ⇒ With
Returns a new instance of With.
184 185 186 187 188 |
# File 'lib/faust2ruby/ast.rb', line 184 def initialize(expression, definitions, **opts) super(**opts) @expression = expression @definitions = definitions end |
Instance Attribute Details
#definitions ⇒ Object (readonly)
Returns the value of attribute definitions.
182 183 184 |
# File 'lib/faust2ruby/ast.rb', line 182 def definitions @definitions end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
182 183 184 |
# File 'lib/faust2ruby/ast.rb', line 182 def expression @expression end |