Sha256: a3f023ddbc0e6942625357bf561db1856a8aac4c67ab6d794af82869678a1374

Contents?: true

Size: 262 Bytes

Versions: 22

Compression:

Stored size: 262 Bytes

Contents

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

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

      def inspect
        'anything'
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rr-3.1.1 lib/rr/wildcard_matchers/anything.rb
rr-3.1.0 lib/rr/wildcard_matchers/anything.rb
rr-3.0.9 lib/rr/wildcard_matchers/anything.rb
rr-3.0.8 lib/rr/wildcard_matchers/anything.rb
rr-3.0.7 lib/rr/wildcard_matchers/anything.rb
rr-3.0.6 lib/rr/wildcard_matchers/anything.rb
rr-3.0.5 lib/rr/wildcard_matchers/anything.rb
rr-3.0.4 lib/rr/wildcard_matchers/anything.rb
rr-3.0.3 lib/rr/wildcard_matchers/anything.rb
rr-3.0.2 lib/rr/wildcard_matchers/anything.rb
rr-3.0.1 lib/rr/wildcard_matchers/anything.rb
rr-3.0.0 lib/rr/wildcard_matchers/anything.rb
rr-1.2.1 lib/rr/wildcard_matchers/anything.rb
rr-1.2.0 lib/rr/wildcard_matchers/anything.rb
rr-1.1.2 lib/rr/wildcard_matchers/anything.rb
rr-1.1.2.rc1 lib/rr/wildcard_matchers/anything.rb
rr-1.1.1 lib/rr/wildcard_matchers/anything.rb
rr-1.1.1.rc1 lib/rr/wildcard_matchers/anything.rb
rr-1.1.0 lib/rr/wildcard_matchers/anything.rb
rr-1.1.0.rc3 lib/rr/wildcard_matchers/anything.rb