lib/diver_down/trace/tracer.rb in diver_down-0.0.1.alpha16 vs lib/diver_down/trace/tracer.rb in diver_down-0.0.1.alpha17
- old
+ new
@@ -22,10 +22,10 @@
attr_writer :trace_events
end
# @param module_set [DiverDown::Trace::ModuleSet, Array<Module, String>]
# @param caller_paths [Array<String>, nil] if nil, trace all files
- # @param ignored_method_ids [Array<String>]
+ # @param ignored_method_ids [Hash{ String => Symbol }, nil]
# @param filter_method_id_path [#call, nil] filter method_id.path
# @param module_set [DiverDown::Trace::ModuleSet, nil] for optimization
def initialize(module_set: {}, caller_paths: nil, ignored_method_ids: nil, filter_method_id_path: nil)
if caller_paths && !caller_paths.all? { Pathname.new(_1).absolute? }
raise ArgumentError, "caller_paths must be absolute path(#{caller_paths})"