lib/private_please/tracking/extension.rb in private_please-0.0.3 vs lib/private_please/tracking/extension.rb in private_please-0.0.4
- old
+ new
@@ -1,18 +1,11 @@
module PrivatePlease ; module Tracking
module Extension
- def private_please(*methods_to_observe)
- parameterless_call = methods_to_observe.empty?
- klass = self
-
- if parameterless_call
- klass.send :include, PrivatePlease::Tracking::InstrumentsAllBelow
-
- else
- Instrumentor.instrument_instance_methods_for_pp_observation(klass, methods_to_observe)
- end
+ def private_please
+ include PrivatePlease::Tracking::InstrumentsAllMethodsBelow
+ set_trace_func PrivatePlease::Tracking::LineChangeTracker::MY_TRACE_FUN
end
end
end end