lib/finity/transition.rb
# Check, whether the current transition is allowed and execute it.
Check, whether the current transition is allowed and execute it.
Check whether the current transition is allowed and execute it .
def handle object
      if @if.nil? or execute object, @if
        execute object, @do unless @do.nil?
        @to
      end
    end
def handle object if @if . nil? or execute object , @if execute object , @do unless @do . nil? @to end end
Check, whether the current transition is allowed and execute it.
Check whether the current transition is allowed and execute it .
object
<not_specific>