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

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_inspectObject



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

#unload_dependent_file_with_instrumentation(dependent_file) ⇒ Object



41
42
43
44
# File 'lib/rails_development_boost/dependencies_patch/instrumentation_patch.rb', line 41

def unload_dependent_file_with_instrumentation(dependent_file)
  boost_log('UNLOAD_DEPENDENT', "#{boost_inspect}: #{dependent_file.boost_inspect}")
  unload_dependent_file_without_instrumentation(dependent_file)
end