class Machete::Matchers::RegexpMatcher

Attributes

regexp[R]

Public Class Methods

new(regexp) click to toggle source
# File lib/machete/matchers.rb, line 139
def initialize(regexp)
  @regexp = regexp
end

Public Instance Methods

==(other) click to toggle source
# File lib/machete/matchers.rb, line 143
def ==(other)
  other.instance_of?(self.class) && @regexp == other.regexp
end