lib/finity/event.rb
# Add a transition to the event.
Add a transition to the event.
Add a transition to the event .
def transitions options = {}
      transition = Transition.new options
      [options[:from]].flatten.each do |from|
        @transitions[from] ||= []
        @transitions[from] << transition
      end
    end
def transitions options = { } transition = Transition . new options [ options [ :from ] ] . flatten . each do | from | @transitions [ from ] ||= [ ] @transitions [ from ] << transition end end
Add a transition to the event.
Add a transition to the event .
options
<not_specific>