instance method update

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

update(options = {}, &block)

No documentation comment.

Parameters

options opt = {}
block block
Source
# File activemodel/lib/active_model/state_machine/machine.rb, line 16
      def update(options = {}, &block)
        if options.key?(:initial) then @initial_state = options[:initial] end
        if block                  then instance_eval(&block)              end
        self
      end

Defined in activemodel/lib/active_model/state_machine/machine.rb line 16 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::StateMachine::Machine

Type at least 2 characters to search.

↑↓ navigate · open · esc close