Module: RailsDevelopmentBoost::DependenciesPatch::InstrumentationPatch::LoadedFile
- Includes:
- Instrumenter
- Defined in:
- lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #add_constants_with_instrumentation(new_constants) ⇒ Object
- #boost_inspect ⇒ Object
- #dependent_file_schedule_for_unloading_with_instrumentation!(dependent_file) ⇒ Object
- #schedule_const_for_unloading_with_instrumentation(const_name) ⇒ Object
Instance Method Details
#add_constants_with_instrumentation(new_constants) ⇒ Object
36 37 38 39 |
# File 'lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb', line 36 def add_constants_with_instrumentation(new_constants) boost_log('ADD_CONSTANTS', "#{boost_inspect} <- #{inspect_constants(new_constants)}") add_constants_without_instrumentation(new_constants) end |
#boost_inspect ⇒ Object
32 33 34 |
# File 'lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb', line 32 def boost_inspect "\#<LoadedFile #{relative_path} #{inspect_constants(@constants)}>" end |
#dependent_file_schedule_for_unloading_with_instrumentation!(dependent_file) ⇒ Object
41 42 43 44 |
# File 'lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb', line 41 def dependent_file_schedule_for_unloading_with_instrumentation!(dependent_file) boost_log('SCHEDULE_DEPENDENT', "#{boost_inspect}: #{dependent_file.boost_inspect}") dependent_file_schedule_for_unloading_without_instrumentation!(dependent_file) end |
#schedule_const_for_unloading_with_instrumentation(const_name) ⇒ Object
46 47 48 49 |
# File 'lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb', line 46 def schedule_const_for_unloading_with_instrumentation(const_name) boost_log_schedule_const_removal('SCHEDULE_REMOVAL', const_name, const_name) schedule_const_for_unloading_without_instrumentation(const_name) end |