Class: RDG::Control::Begin

Inherits:
Analyser show all
Defined in:
lib/rdg/control/begin.rb

Instance Method Summary collapse

Methods inherited from Analyser

#analyse, #initialize

Constructor Details

This class inherits a constructor from RDG::Control::Analyser

Instance Method Details

#end_nodesObject



14
15
16
# File 'lib/rdg/control/begin.rb', line 14

def end_nodes
  children.last(1)
end

#internal_flow_edgesObject



6
7
8
# File 'lib/rdg/control/begin.rb', line 6

def internal_flow_edges
  children.each_cons(2).to_a
end

#start_nodesObject



10
11
12
# File 'lib/rdg/control/begin.rb', line 10

def start_nodes
  children.first(1)
end