Sha256: 045c70b25a06af965119a7a94147320e275b1a339c49521bd3421599d160e098

Contents?: true

Size: 519 Bytes

Versions: 2

Compression:

Stored size: 519 Bytes

Contents

module Bogus
  class Fake
    include RecordInteractions
    extend RecordInteractions

    def initialize(*args)
    end

    def to_s
      "#<#{self.class}:0x#{object_id.to_s(16)}>"
    end

    def kind_of?(klass)
      klass == self.class.__copied_class__
    end

    def instance_of?(klass)
      klass == self.class.__copied_class__
    end

    class << self
      attr_accessor :__copied_class__

      def name
        __copied_class__.name
      end

      def to_s
        name
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bogus-0.0.2 lib/bogus/fake.rb
bogus-0.0.1 lib/bogus/fake.rb