File: regexp.rb

package info (click to toggle)
ruby-rr 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,436 kB
  • ctags: 1,404
  • sloc: ruby: 11,657; makefile: 5
file content (8 lines) | stat: -rw-r--r-- 145 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
class Regexp
  def wildcard_match?(other)
    self == other ||
    !!(other.is_a?(String) && other =~ self)
  end

  alias_method :eql?, :==
end