Sha256: db51eb161954b901a0ae37cb4f52f59d0465bfd1c4429c199fa38ecdd139343a

Contents?: true

Size: 582 Bytes

Versions: 16

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

require 'appmap/event'
require 'appmap/hook/method'

module AppMap
  module Handler
    # Base handler class, will emit method call and return events.
    class Function < Hook::Method
      def handle_call(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, return_value, exception, elapsed: elapsed)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
appmap-0.83.6 lib/appmap/handler/function.rb
appmap-0.83.5 lib/appmap/handler/function.rb
appmap-0.83.4 lib/appmap/handler/function.rb
appmap-0.83.3 lib/appmap/handler/function.rb
appmap-0.83.2 lib/appmap/handler/function.rb
appmap-0.83.1 lib/appmap/handler/function.rb
appmap-0.83.0 lib/appmap/handler/function.rb
appmap-0.82.0 lib/appmap/handler/function.rb
appmap-0.81.1 lib/appmap/handler/function.rb
appmap-0.81.0 lib/appmap/handler/function.rb
appmap-0.80.2 lib/appmap/handler/function.rb
appmap-0.80.1 lib/appmap/handler/function.rb
appmap-0.80.0 lib/appmap/handler/function.rb
appmap-0.79.0 lib/appmap/handler/function.rb
appmap-0.78.0 lib/appmap/handler/function.rb
appmap-0.77.4 lib/appmap/handler/function.rb