method

new

rails latest stable - Class: ActiveModel::StateMachine::Machine

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

new(klass, name, options = {}, &block)
public

No documentation available.

# File activemodel/lib/active_model/state_machine/machine.rb, line 11
      def initialize(klass, name, options = {}, &block)
        @klass, @name, @states, @state_index, @events = klass, name, [], {}, {}
        update(options, &block)
      end