Method: Leap.instrument
- Defined in:
- lib/leap/whip.rb
.instrument(&blk) ⇒ Object
Returns the instrumentation object–or a “pass-through” substitute if not enabled
18 19 20 |
# File 'lib/leap/whip.rb', line 18 def instrument(&blk) instrument? ? @@whip : @@bystander ||= Bystander.new end |