115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# File 'lib/hyper_trace/hyper_trace.rb', line 115
def instrumentation_off(config)
if config.instrument_class?
config.klass.methods.grep(/^__hyper_trace_pre_.+$/).each do |method|
config.klass.class_eval do
class << self
alias_method method.gsub(/^__hyper_trace_pre_/, ''), method
end
end
end
else
config.klass.instance_methods.grep(/^__hyper_trace_pre_.+$/).each do |method|
config.klass.class_eval { alias_method method.gsub(/^__hyper_trace_pre_/, ''), method }
end
end
end
|