Sha256: 8cab7281ed5e24998e7d3bd5a0ecec466fc9b655ef2310efd281b178645852cf

Contents?: true

Size: 533 Bytes

Versions: 2

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

require 'appmap/event'

module AppMap
  module Handler
    module Function
      class << self
        def handle_call(defined_class, hook_method, receiver, args)
          AppMap::Event::MethodCall.build_from_invocation(defined_class, hook_method, receiver, args)
        end

        def handle_return(call_event_id, elapsed, return_value, exception)
          AppMap::Event::MethodReturn.build_from_invocation(call_event_id, elapsed, return_value, exception)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appmap-0.45.1 lib/appmap/handler/function.rb
appmap-0.45.0 lib/appmap/handler/function.rb