ThibautGoing open source18986c113 years agoHistory
14 lines · 297 B · Ruby
RawDownload
module FakeInstrumentation  def instrument(event, payload = nil)    (@instrumentations ||= []) << { event: event, payload: payload }    yield payload if block_given?  end   def instrumentations    @instrumentations  end   def last_instrumentation    @instrumentations.try :last  endend