Parent

Class Index [+]

Quicksearch

Mocha::StateMachine::StatePredicate

Provides the ability to determine whether a {StateMachine} is in a specified state at some point in the future.

Public Class Methods

new(state_machine, state) click to toggle source

@private

    # File lib/mocha/state_machine.rb, line 36
36:       def initialize(state_machine, state)
37:         @state_machine, @state = state_machine, state
38:       end

Public Instance Methods

active?() click to toggle source

@private

    # File lib/mocha/state_machine.rb, line 41
41:       def active?
42:         @state_machine.current_state != @state
43:       end
mocha_inspect() click to toggle source

@private

    # File lib/mocha/state_machine.rb, line 46
46:       def mocha_inspect
47:         "#{@state_machine.name} is not #{@state.mocha_inspect}"
48:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.