Sha256: 94a7d0271100c26c2b9f6c066a7db33ab1234f8f89dc6ce82747848395fca5b6

Contents?: true

Size: 179 Bytes

Versions: 7

Compression:

Stored size: 179 Bytes

Contents

module Bogus
  class SameClass
    extend Takes
    takes :klass

    def inspect
      "any(#{klass.name})"
    end

    def ==(other)
      other.is_a?(klass)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bogus-0.1.7 lib/bogus/stubbing/same_class.rb
bogus-0.1.6 lib/bogus/stubbing/same_class.rb
bogus-0.1.5 lib/bogus/stubbing/same_class.rb
bogus-0.1.4 lib/bogus/stubbing/same_class.rb
bogus-0.1.3 lib/bogus/same_class.rb
bogus-0.1.2 lib/bogus/same_class.rb
bogus-0.1.1 lib/bogus/same_class.rb