lib/orthoses/call_tracer/lazy.rb in orthoses-1.5.0 vs lib/orthoses/call_tracer/lazy.rb in orthoses-1.6.0

- old
+ new

@@ -1,8 +1,20 @@ # frozen_string_literal: true module Orthoses class CallTracer + # CallTracer::Lazy is possible to perform a trace + # equivalent to CallTracer before method is defined. + # scope = CallTracerLazy.new + # scope.trace("ActiveRecord::Base#scope") do + # require 'active_record/all' + # @loader.call + # end + # scope.captures.each do |capture| + # capture.argument[:name] + # capture.argument[:body] + # capture.argument[:block] + # end class Lazy include Capturable attr_reader :captures