Sha256: 78d9c0f431af6a1c054bd6b75428b378b55a4f843a838eab6195b699b7565774

Contents?: true

Size: 356 Bytes

Versions: 2

Compression:

Stored size: 356 Bytes

Contents

module Bogus
  module RecordInteractions
    def __inner_object__
      @__inner_object__ ||= Object.new
    end

    def __stub__
      @__stub__ ||= RRProxy.stub(__inner_object__)
    end

    def __record__(method, *args, &block)
      __stub__.__send__(method, *args)
      __inner_object__.__send__(method, *args, &block)
      self
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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