Class: RR::WildcardMatchers::Anything
- Inherits:
-
Object
- Object
- RR::WildcardMatchers::Anything
- Defined in:
- lib/rr/wildcard_matchers/anything.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
8 9 10 |
# File 'lib/rr/wildcard_matchers/anything.rb', line 8 def ==(other) other.is_a?(self.class) end |
#inspect ⇒ Object
13 14 15 |
# File 'lib/rr/wildcard_matchers/anything.rb', line 13 def inspect 'anything' end |
#wildcard_match?(other) ⇒ Boolean
4 5 6 |
# File 'lib/rr/wildcard_matchers/anything.rb', line 4 def wildcard_match?(other) true end |