Sha256: 0dacfb3c5c0f620ae065cec7feba9dc098bb30ffaae700e63ed9efdf22c38389

Contents?: true

Size: 756 Bytes

Versions: 16

Compression:

Stored size: 756 Bytes

Contents

module Spy
  class CallLog

    # @!attribute [r] object
    #   @return [Object] object that the method was called from
    #
    # @!attribute [r] called_from
    #   @return [String] where the method was called from
    #
    # @!attribute [r] args
    #   @return [Array] arguments were sent to the method
    #
    # @!attribute [r] block
    #   @return [Proc] the block that was sent to the method
    #
    # @!attribute [r] result
    #   @return The result of the method of being stubbed, or called through


    attr_reader :object, :called_from, :args, :block, :result

    def initialize(object, called_from, args, block, result)
      @object, @called_from, @args, @block, @result = object, called_from, args, block, result
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spy-1.0.3 lib/spy/call_log.rb
spy-1.0.2 lib/spy/call_log.rb
spy-1.0.1 lib/spy/call_log.rb
spy-1.0.0 lib/spy/call_log.rb
spy-0.4.5 lib/spy/call_log.rb
spy-0.4.3 lib/spy/call_log.rb
spy-0.4.2 lib/spy/call_log.rb
spy-0.4.1 lib/spy/call_log.rb
spy-0.4.0 lib/spy/call_log.rb
spy-0.3.1 lib/spy/call_log.rb
spy-0.3.0 lib/spy/call_log.rb
spy-0.2.5 lib/spy/call_log.rb
spy-0.2.4 lib/spy/call_log.rb
spy-0.2.3 lib/spy/call_log.rb
spy-0.2.2 lib/spy/call_log.rb
spy-0.2.1 lib/spy/call_log.rb