File: range.rb

package info (click to toggle)
ruby-rr 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,424 kB
  • sloc: ruby: 11,405; makefile: 7
file content (8 lines) | stat: -rw-r--r-- 144 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
class Range
  def wildcard_match?(other)
    self == other ||
    (other.is_a?(Numeric) && include?(other))
  end

  alias_method :eql, :==
end