Sha256: 9b6f2b4743419b187daaf8a72df51a2870e205bb22c8ea2f68dcbf0bcba57269
Contents?: true
Size: 395 Bytes
Versions: 4
Compression:
Stored size: 395 Bytes
Contents
require 'speed_gun' class SpeedGun::Hook HOOKS = [] def self.inherited(klass) HOOKS.push(klass) unless HOOKS.include?(klass) end def self.invoke_all(profiler) HOOKS.each { |hook| hook.invoke(profiler) } end def self.invoke(profiler) new(profiler).invoke end def initialize(profiler) @profiler = profiler end attr_reader :profiler def invoke end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
speed_gun-0.0.4 | lib/speed_gun/hook.rb |
speed_gun-0.0.3 | lib/speed_gun/hook.rb |
speed_gun-0.0.2 | lib/speed_gun/hook.rb |
speed_gun-0.0.1 | lib/speed_gun/hook.rb |