Module: RakeCommander::Base::ClassMethods

Defined in:
lib/rake-commander/base.rb

Instance Method Summary collapse

Instance Method Details

#self_loadObject

Loads children classes by keeping a cache.



26
27
28
# File 'lib/rake-commander/base.rb', line 26

def self_load
  autoload_children
end

#self_load_resetObject

Note:

required for reload.

Clears track on any auto-loaded children



32
33
34
# File 'lib/rake-commander/base.rb', line 32

def self_load_reset
  clear_autoloaded_children
end

#self_reloadObject

Clears the cache of autoloaded children classes and loads them again.



37
38
39
40
# File 'lib/rake-commander/base.rb', line 37

def self_reload
  self_load_reset
  autoload_children
end