def matches?(from)
      states.keys.any? { |state| [ANY_STATE, from].include?(state) }
    end
def matches?(from)
      states.keys.any? { |state| [ANY_STATE, from].include?(state) }
    end
Check if this transition matches from state

 @param [Symbol] from
   the from state to match against

 @example
   transition = Transition.new(context, states: {:green => :red})
   transition.matches?(:green) # => true

 @return [Boolean]
   Return true if match is found, false otherwise.

 @api public