Module: Minstrel

Defined in:
lib/minstrel.rb

Overview

Wrap method calls for a class of your choosing. Example:

instrument = Minstrel::Instrument.new()
instrument.observe(class_or_method) { |event| ... }

The ‘event’ is a Minstrel::Event.

You can also wrap from the command-line

RUBY_INSTRUMENT=comma_separated_classnames ruby -rminstrel ./your/program.rb

Defined Under Namespace

Classes: Event, Instrument