Class: WAB::UI::MultiFlow
- Inherits:
-
Flow
- Object
- Controller
- Flow
- WAB::UI::MultiFlow
- Defined in:
- lib/wab/ui/multi_flow.rb
Overview
A Flow controller that merges multiple flows into one single flow.
Instance Attribute Summary
Attributes inherited from Flow
Attributes inherited from Controller
Instance Method Summary collapse
- #add_flow(flow) ⇒ Object
-
#initialize(shell) ⇒ MultiFlow
constructor
Create a new instance that can be used to merge multiple flows into one single flow.
Methods inherited from Flow
#add_display, #get_display, #read
Methods inherited from Controller
Constructor Details
#initialize(shell) ⇒ MultiFlow
Create a new instance that can be used to merge multiple flows into one single flow.
- shell
-
shell containing the instancec
12 13 14 |
# File 'lib/wab/ui/multi_flow.rb', line 12 def initialize(shell) super(shell) end |
Instance Method Details
#add_flow(flow) ⇒ Object
16 17 18 19 |
# File 'lib/wab/ui/multi_flow.rb', line 16 def add_flow(flow) flow.displays.each_pair { |name,display| @displays[name] = display } @entry = flow.entry if @entry.nil? end |