Class: AngryWeb::REMatcher

Inherits:
ValueMatcher show all
Defined in:
lib/angry_web/matcher.rb

Instance Attribute Summary

Attributes inherited from ValueMatcher

#mismatch_reason

Instance Method Summary collapse

Methods inherited from ValueMatcher

#initialize

Constructor Details

This class inherits a constructor from AngryWeb::ValueMatcher

Instance Method Details

#match?(other) ⇒ Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/angry_web/matcher.rb', line 39

def match?(other)
  other.to_s.match(@value)
end