Method: HyperTrace.all_methods

Defined in:
lib/hyper_trace/hyper_trace.rb

.all_methods(config) ⇒ Object



131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'lib/hyper_trace/hyper_trace.rb', line 131

def all_methods(config)
  if config.instrument_class?
    Set.new(config.klass.methods.grep(/^(?!__hyper_trace_)/)) -
    Set.new(Class.methods + Object.methods) -
    config.hypertrace_class_exclusions -
    [:hypertrace_format_instance]
  else
    Set.new(config.klass.instance_methods.grep(/^(?!__hyper_trace_)/)) -
    Set.new(Class.methods + Object.methods) -
    config.hypertrace_exclusions -
    [:hypertrace_format_instance]
  end
end