class Regexp

Public Instance Methods

wildcard_match?(other) click to toggle source
# File lib/rr/wildcard_matchers/regexp.rb, line 2
def wildcard_match?(other)
  return true if self == other
  return false unless other.is_a?(String)
  (other =~ self) ? true : false
end