Class Regexp
In: lib/rr/wildcard_matchers/regexp.rb
Parent: Object

Methods

Public Instance methods

[Source]

   # File lib/rr/wildcard_matchers/regexp.rb, line 2
2:   def wildcard_match?(other)
3:     return true if self == other
4:     return false unless other.is_a?(String)
5:     (other =~ self) ? true : false
6:   end

[Validate]