method

state

state(name, options = {})
private

No documentation available.

# File activemodel/lib/active_model/state_machine/machine.rb, line 61
      def state(name, options = {})
        @states << (state_index[name] ||= State.new(name, :machine => self)).update(options)
      end