Class: Faust2Ruby::AST::CaseExpr
Overview
Case expression: case { (pattern) => expr; … } Each branch is a CaseBranch with pattern and result
Instance Attribute Summary collapse
-
#branches ⇒ Object
readonly
Returns the value of attribute branches.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(branches, **opts) ⇒ CaseExpr
constructor
A new instance of CaseExpr.
Constructor Details
#initialize(branches, **opts) ⇒ CaseExpr
Returns a new instance of CaseExpr.
298 299 300 301 |
# File 'lib/faust2ruby/ast.rb', line 298 def initialize(branches, **opts) super(**opts) @branches = branches end |
Instance Attribute Details
#branches ⇒ Object (readonly)
Returns the value of attribute branches.
296 297 298 |
# File 'lib/faust2ruby/ast.rb', line 296 def branches @branches end |