Sha256: 036773be7efa7950d228fd2789d9c0007e3f42b7c566c065f1b4379c15e6f983
Contents?: true
Size: 891 Bytes
Versions: 2
Compression:
Stored size: 891 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] kwargs # @return [Array] keyword 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, :kwargs, :block, :result def initialize(object, called_from, args, kwargs, block, result) @object, @called_from, @args, @kwargs, @block, @result = object, called_from, args, kwargs, block, result end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spy-1.0.5 | lib/spy/call_log.rb |
spy-1.0.4 | lib/spy/call_log.rb |