Class Transitions::StateTransition
In: lib/transitions/state_transition.rb
Parent: Object

Methods

==   executable?   execute   from?   new  

Attributes

from  [R] 
to  [R] 

Public Class methods

TODO: `from` and `to` should be private as well

Public Instance methods

@param obj [Any] - the subject @param args [Array<Symbol>] - any arguments passed into the transition method

  E.g. something like
    car.drive!(:fast, :now)
  with `car` being the subject and `drive` the transition method would result
  in `args` looking like this:
    [:fast, :now]

@return [Bool]

@param obj [Any] - the subject @param args [Array<Symbol>] - any arguments passed into the transition method

  E.g. something like
    car.drive!(:fast, :now)
  with `car` being the subject and `drive` the transition method would result
  in `args` looking like this:
    [:fast, :now]

@return [void]

rubocop:disable Metrics/MethodLength

[Validate]