module DeepCover::Node::BackwardsStrategy
Public Instance Methods
flow_completion_count()
click to toggle source
Instead of assuming our parent tracks our entry and we are responsible for tracking our completion, we go the other way and assume our parent tracks our completion and we are responsible for our entry.
# File lib/deep_cover/node/assignments.rb, line 41 def flow_completion_count if (s = next_sibling) s.flow_entry_count else parent.flow_completion_count end end
flow_entry_count()
click to toggle source
# File lib/deep_cover/node/assignments.rb, line 49 def flow_entry_count if (first_child = children_nodes.first) first_child.flow_entry_count else flow_completion_count end end