Method: BOAST::TypeTransition#get_transition

Defined in:
lib/BOAST/Transitions.rb

#get_transition(type1, type2, operator) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/BOAST/Transitions.rb', line 4

def get_transition(type1, type2, operator)
 #STDERR.puts @@transitions.inspect
 #STDERR.puts @@transitions[t1][t2].inspec
 ops = @@transitions[[type1,type2]]
 raise "Types #{[type1,type2]} have no relation!" if not ops
 t = ops[operator]
 return [t,operator] if t
 t = ops[:default]
 return [t,operator] if t
 raise "Unresolvable transition!"
end