class EventHook

Constants

ALL
CALL
CCALL
CLASS
CRETURN
EVENTS

Ruby events that EventHook notifies you about.

LINE
NND
NONE
RAISE
RETURN
VERSION

Public Class Methods

process(*args) click to toggle source

Redefine me in a subclass. args is [event_id, self, method, class].

# File lib/event_hook.rb, line 45
def self.process(*args)
  raise NotImplementedError, "subclass responsibility"
end
start_hook() click to toggle source
# File lib/event_hook.rb, line 34
def self.start_hook
  self.instance.add_event_hook
end
stop_hook() click to toggle source
# File lib/event_hook.rb, line 38
def self.stop_hook
  self.instance.remove_event_hook
end