Class Index [+]

Quicksearch

Mocha::ParameterMatchers::Not

Parameter matcher which inverts the logic of the specified matcher using a logical NOT operation.

Public Class Methods

new(matcher) click to toggle source

@private

    # File lib/mocha/parameter_matchers/not.rb, line 33
33:       def initialize(matcher)
34:         @matcher = matcher
35:       end

Public Instance Methods

matches?(available_parameters) click to toggle source

@private

    # File lib/mocha/parameter_matchers/not.rb, line 38
38:       def matches?(available_parameters)
39:         parameter = available_parameters.shift
40:         !@matcher.matches?([parameter])
41:       end
mocha_inspect() click to toggle source

@private

    # File lib/mocha/parameter_matchers/not.rb, line 44
44:       def mocha_inspect
45:         "Not(#{@matcher.mocha_inspect})"
46:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.