Parent

Methods

Files

RSpec::Mocks::ArgumentMatchers::RegexpMatcher

Public Class Methods

new(regexp) click to toggle source
# File lib/rspec/mocks/argument_matchers.rb, line 34
def initialize(regexp)
  @regexp = regexp
end

Public Instance Methods

==(value) click to toggle source
# File lib/rspec/mocks/argument_matchers.rb, line 38
def ==(value)
  Regexp === value ? value == @regexp : value =~ @regexp
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.