Sha256: aee0daf4fc92338263dc85619a1307c0ae675b1fe3277a4bdc2914769b6e510c

Contents?: true

Size: 269 Bytes

Versions: 65

Compression:

Stored size: 269 Bytes

Contents

module RR
  module WildcardMatchers
    class Anything
      def wildcard_match?(other)
        true
      end

      def ==(other)
        other.is_a?(self.class)
      end
      alias_method :eql?, :==

      def inspect
        'anything'
      end
    end
  end
end

Version data entries

65 entries across 61 versions & 9 rubygems

Version Path
rr-1.0.1 lib/rr/wildcard_matchers/anything.rb
rr-1.0.0 lib/rr/wildcard_matchers/anything.rb
rr-0.10.11 lib/rr/wildcard_matchers/anything.rb
rr-0.10.10 lib/rr/wildcard_matchers/anything.rb
rr-0.10.9 lib/rr/wildcard_matchers/anything.rb
rr-0.10.8 lib/rr/wildcard_matchers/anything.rb
rr-0.10.7 lib/rr/wildcard_matchers/anything.rb
rr-0.10.6 lib/rr/wildcard_matchers/anything.rb
rr-0.10.5 lib/rr/wildcard_matchers/anything.rb
rr-0.10.4 lib/rr/wildcard_matchers/anything.rb
rr-0.10.2 lib/rr/wildcard_matchers/anything.rb
redinger-rr-0.10.3 lib/rr/wildcard_matchers/anything.rb
rr-0.10.0 lib/rr/wildcard_matchers/anything.rb
rr-0.8.1 lib/rr/wildcard_matchers/anything.rb
rr-0.4.5 lib/rr/wildcard_matchers/anything.rb
rr-0.4.7 lib/rr/wildcard_matchers/anything.rb
rr-0.7.0 lib/rr/wildcard_matchers/anything.rb
rr-0.4.9 lib/rr/wildcard_matchers/anything.rb
rr-0.4.8 lib/rr/wildcard_matchers/anything.rb
rr-0.4.6 lib/rr/wildcard_matchers/anything.rb