Class Index [+]

Quicksearch

Mocha::ParameterMatchers::Equals

Parameter matcher which matches when actual parameter equals expected value.

Public Class Methods

new(value) click to toggle source

@private

    # File lib/mocha/parameter_matchers/equals.rb, line 34
34:       def initialize(value)
35:         @value = value
36:       end

Public Instance Methods

matches?(available_parameters) click to toggle source

@private

    # File lib/mocha/parameter_matchers/equals.rb, line 39
39:       def matches?(available_parameters)
40:         parameter = available_parameters.shift
41:         parameter == @value
42:       end
mocha_inspect() click to toggle source

@private

    # File lib/mocha/parameter_matchers/equals.rb, line 45
45:       def mocha_inspect
46:         @value.mocha_inspect
47:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.