Class: Range

Inherits:
Object
  • Object
show all
Defined in:
lib/rr/wildcard_matchers/range.rb

Instance Method Summary collapse

Instance Method Details

#wildcard_match?(other) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
5
6
# File 'lib/rr/wildcard_matchers/range.rb', line 2

def wildcard_match?(other)
  return true if self == other
  return false unless other.is_a?(Numeric)
  self.include?(other)
end