Module: MotionProfiler::Helper

Included in:
MotionProfiler
Defined in:
lib/motion-profiler/helper.rb

Overview

Contains convenience methods.

Instance Method Summary collapse

Instance Method Details

#observe(obj) ⇒ Object

A convenience method for observing a class with a profiler. The same as calling ‘MotionProfiler::Profiler.new(obj)`.



8
9
10
# File 'lib/motion-profiler/helper.rb', line 8

def observe(obj)
  Profiler.new(obj)
end