File: call_log.rb

package info (click to toggle)
ruby-spy 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 360 kB
  • sloc: ruby: 3,101; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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