Class: Range
- Inherits:
-
Object
- Object
- Range
- Defined in:
- lib/rr/expectations/wildcard_matchers/range.rb
Instance Method Summary collapse
Instance Method Details
#wildcard_match?(other) ⇒ Boolean
2 3 4 5 6 |
# File 'lib/rr/expectations/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 |