Class: RDG::Control::Rescue
Instance Method Summary
collapse
#initialize, register_analyser, register_default_analyser
Instance Method Details
#analyse ⇒ Object
13
14
15
16
|
# File 'lib/rdg/control/rescue.rb', line 13
def analyse
super
@handlers.each { |h| registry.prepend_for(h, Handler) }
end
|
#end_nodes ⇒ Object
26
27
28
|
# File 'lib/rdg/control/rescue.rb', line 26
def end_nodes
@alternative.empty? ? nodes : @handlers.push(@alternative)
end
|
#internal_flow_edges ⇒ Object
18
19
20
|
# File 'lib/rdg/control/rescue.rb', line 18
def internal_flow_edges
@alternative.empty? ? [] : [[@main, @alternative]]
end
|
#prepare ⇒ Object
9
10
11
|
# File 'lib/rdg/control/rescue.rb', line 9
def prepare
@main, *@handlers, @alternative = children
end
|
#start_node ⇒ Object
22
23
24
|
# File 'lib/rdg/control/rescue.rb', line 22
def start_node
@main
end
|