Class: Faust2Ruby::AST::Iteration
Overview
Iteration: par(i, n, expr), seq(i, n, expr), etc.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#var ⇒ Object
readonly
Returns the value of attribute var.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(type, var, count, body, **opts) ⇒ Iteration
constructor
A new instance of Iteration.
Constructor Details
#initialize(type, var, count, body, **opts) ⇒ Iteration
Returns a new instance of Iteration.
160 161 162 163 164 165 166 |
# File 'lib/faust2ruby/ast.rb', line 160 def initialize(type, var, count, body, **opts) super(**opts) @type = type # :par, :seq, :sum, :prod @var = var @count = count @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
158 159 160 |
# File 'lib/faust2ruby/ast.rb', line 158 def body @body end |
#count ⇒ Object (readonly)
Returns the value of attribute count.
158 159 160 |
# File 'lib/faust2ruby/ast.rb', line 158 def count @count end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
158 159 160 |
# File 'lib/faust2ruby/ast.rb', line 158 def type @type end |
#var ⇒ Object (readonly)
Returns the value of attribute var.
158 159 160 |
# File 'lib/faust2ruby/ast.rb', line 158 def var @var end |