Parent

Methods

Class Index [+]

Quicksearch

Spec::Mocks::ArgumentMatchers::RegexpMatcher

Public Class Methods

new(regexp) click to toggle source
    # File lib/spec/mocks/argument_matchers.rb, line 38
38:         def initialize(regexp)
39:           @regexp = regexp
40:         end

Public Instance Methods

==(value) click to toggle source
    # File lib/spec/mocks/argument_matchers.rb, line 42
42:         def ==(value)
43:           return value =~ @regexp unless value.is_a?(Regexp)
44:           value == @regexp
45:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.