Parent

Class/Module Index [+]

Quicksearch

Mocha::InStateOrderingConstraint

Public Class Methods

new(state_predicate) click to toggle source
# File lib/mocha/in_state_ordering_constraint.rb, line 5
def initialize(state_predicate)
  @state_predicate = state_predicate
end

Public Instance Methods

allows_invocation_now?() click to toggle source
# File lib/mocha/in_state_ordering_constraint.rb, line 9
def allows_invocation_now?
  @state_predicate.active?
end
mocha_inspect() click to toggle source
# File lib/mocha/in_state_ordering_constraint.rb, line 13
def mocha_inspect
  "when #{@state_predicate.mocha_inspect}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.