Module: RailsDevelopmentBoost::DependenciesPatch::InstrumentationPatch::Instrumenter::ClassMethods
- Defined in:
- lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb
Instance Method Summary collapse
Instance Method Details
#included(klass) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb', line 12 def included(klass) (public_instance_methods(false) + private_instance_methods(false) + protected_instance_methods(false)).each do |method| if m = method.to_s.match(/\A(.+)_with_(.+)\Z/) meth_name, extension = m[1], m[2] extension.sub!(/[?!=]\Z/) do |modifier| meth_name << modifier '' end klass.alias_method_chain meth_name, extension end end super end |