Class: WAB::UI::MultiFlow

Inherits:
Flow show all
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

#displays, #entry

Attributes inherited from Controller

#shell

Instance Method Summary collapse

Methods inherited from Flow

#add_display, #get_display, #read

Methods inherited from Controller

#handle

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