class Mocha::StateMachine::StatePredicate
Provides the ability to determine whether a {StateMachine} is in a specified state at some point in the future.
def active?
- Private: -
def active? @active_check.call(@state_machine.current_state, @state) end
def initialize(state_machine, state, description, &active_check)
- Private: -
def initialize(state_machine, state, description, &active_check) @state_machine = state_machine @state = state @description = description @active_check = active_check end
def mocha_inspect
- Private: -
def mocha_inspect "#{@state_machine.name} #{@description} #{@state.mocha_inspect}" end