class TappingDevice::Payload
Constants
- ATTRS
Public Class Methods
new( target:, receiver:, method_name:, method_object:, arguments:, return_value:, filepath:, line_number:, defined_class:, trace:, tag:, tp:, is_private_call: )
click to toggle source
# File lib/tapping_device/payload.rb, line 12 def initialize( target:, receiver:, method_name:, method_object:, arguments:, return_value:, filepath:, line_number:, defined_class:, trace:, tag:, tp:, is_private_call: ) @target = target @receiver = receiver @method_name = method_name @method_object = method_object @arguments = arguments @return_value = return_value @filepath = filepath @line_number = line_number @defined_class = defined_class @trace = trace @tag = tag @tp = tp @ivar_changes = {} @is_private_call = is_private_call end
Public Instance Methods
location(options = {})
click to toggle source
# File lib/tapping_device/payload.rb, line 36 def location(options = {}) "#{filepath}:#{line_number}" end
method_head()
click to toggle source
# File lib/tapping_device/payload.rb, line 32 def method_head method_object.source.strip if method_object.source_location end