Sha256: deeb238e5d45abe2e2b3b15667e1963b18e68600ee70025be842e428ec7c9c29

Contents?: true

Size: 589 Bytes

Versions: 39

Compression:

Stored size: 589 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 FunctionHandler < 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

39 entries across 39 versions & 1 rubygems

Version Path
appmap-1.1.1 lib/appmap/handler/function_handler.rb
appmap-1.0.1 lib/appmap/handler/function_handler.rb
appmap-1.0.0 lib/appmap/handler/function_handler.rb
appmap-0.103.0 lib/appmap/handler/function_handler.rb
appmap-0.102.2 lib/appmap/handler/function_handler.rb
appmap-0.102.1 lib/appmap/handler/function_handler.rb
appmap-0.102.0 lib/appmap/handler/function_handler.rb
appmap-0.101.0 lib/appmap/handler/function_handler.rb
appmap-0.100.0 lib/appmap/handler/function_handler.rb
appmap-0.99.4 lib/appmap/handler/function_handler.rb
appmap-0.99.2 lib/appmap/handler/function_handler.rb
appmap-0.99.1 lib/appmap/handler/function_handler.rb
appmap-0.99.0 lib/appmap/handler/function_handler.rb
appmap-0.98.1 lib/appmap/handler/function_handler.rb
appmap-0.98.0 lib/appmap/handler/function_handler.rb
appmap-0.97.0 lib/appmap/handler/function_handler.rb
appmap-0.96.0 lib/appmap/handler/function_handler.rb
appmap-0.95.2 lib/appmap/handler/function_handler.rb
appmap-0.95.1 lib/appmap/handler/function_handler.rb
appmap-0.95.0 lib/appmap/handler/function_handler.rb