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.



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

def self_load
  autoload_children
end

#self_load_resetObject

Note:

required for reload.

Clears track on any auto-loaded children



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

def self_load_reset
  clear_autoloaded_children
end

#self_reloadObject

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



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

def self_reload
  self_load_reset
  autoload_children
end