Class: RailsDevelopmentBoost::RoutesLoadedFile

Inherits:
LoadedFile
  • Object
show all
Defined in:
lib/rails_development_boost/loaded_file.rb

Constant Summary

Constants inherited from LoadedFile

LoadedFile::CONSTANTS_TO_FILES, LoadedFile::INTERDEPENDENCIES, LoadedFile::LOADED, LoadedFile::NOW_UNLOADING

Instance Attribute Summary

Attributes inherited from LoadedFile

#constants, #path

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LoadedFile

#associate_to_greppable_constants, #associate_with, const_unloaded, #delete_constant, #dependent_file_schedule_for_unloading!, #dirname, #eql?, #greppable_constants, #guard_double_unloading, #hash, #initialize, loaded?, loaded_constant?, loaded_constants, #read_greppable_constants, relate_files, #require_path, #schedule_const_for_unloading, schedule_containing_file, schedule_for_unloading_files_with_const!, #stale!, unload_modified!

Constructor Details

This class inherits a constructor from RailsDevelopmentBoost::LoadedFile

Class Method Details

.for(file_path) ⇒ Object



310
311
312
# File 'lib/rails_development_boost/loaded_file.rb', line 310

def self.for(file_path)
  LOADED.loaded?(file_path) ? LOADED[file_path] : LOADED[file_path] = new(file_path)
end

Instance Method Details

#add_constants(new_constants) ⇒ Object



304
305
# File 'lib/rails_development_boost/loaded_file.rb', line 304

def add_constants(new_constants)
end

#changed?Boolean

Returns:

  • (Boolean)


296
297
298
# File 'lib/rails_development_boost/loaded_file.rb', line 296

def changed?
  false
end

#clean_up_if_necessaryObject



307
308
# File 'lib/rails_development_boost/loaded_file.rb', line 307

def clean_up_if_necessary
end

#decorator_like?Boolean

Returns:

  • (Boolean)


292
293
294
# File 'lib/rails_development_boost/loaded_file.rb', line 292

def decorator_like?
  false
end

#schedule_consts_for_unloading!Object



300
301
302
# File 'lib/rails_development_boost/loaded_file.rb', line 300

def schedule_consts_for_unloading!
  Reloader.routes_reloader.force_execute!
end