Class: Qo::Branches::WhenBranch
- Defined in:
- lib/qo/branches/when_branch.rb
Overview
Constant Summary
Constants inherited from Branch
Instance Attribute Summary
Attributes inherited from Branch
Instance Method Summary collapse
-
#initialize(destructure: false) ⇒ WhenBranch
constructor
The traditional pattern matching branch, based off of
when
from Ruby'scase
statement:.
Methods inherited from Branch
create, #create_matcher, #default?
Constructor Details
#initialize(destructure: false) ⇒ WhenBranch
16 17 18 |
# File 'lib/qo/branches/when_branch.rb', line 16 def initialize(destructure: false) super(name: 'when', destructure: destructure, default: false) end |