class Spy::Call

Attributes

args[R]

@return [Array<Object>] arguments given to the method call

block[R]

@return [Proc] block given to the method call, if present

method_name[R]

@return [Symbol] name of the method called

receiver[R]

@return [Object] object that received the method call

Public Class Methods

new(receiver, method_name, args, block) click to toggle source
# File lib/spy/call.rb, line 14
def initialize(receiver, method_name, args, block)
  @receiver = receiver
  @method_name = method_name
  @args = args
  @block = block
end