module ActiveEvent::Support::Autoload::ClassMethods
Public Instance Methods
app_path=(path)
click to toggle source
# File lib/active_event/support/autoload.rb, line 6 def app_path=(path) self.dir_path = path Autoloader.load_from dirs end
reload()
click to toggle source
# File lib/active_event/support/autoload.rb, line 16 def reload Autoloader.reload_from dirs end
reload_module(module_name)
click to toggle source
# File lib/active_event/support/autoload.rb, line 11 def reload_module(module_name) path = [parent.name, module_name.to_s].join('::').underscore Autoloader.reload module_name, path end
watchable_dirs()
click to toggle source
# File lib/active_event/support/autoload.rb, line 20 def watchable_dirs watchable_dirs = {} dir_names.each do |dir_name| watchable_dirs[dir_name] = [:rb] end watchable_dirs end
Private Instance Methods
dir_names()
click to toggle source
# File lib/active_event/support/autoload.rb, line 30 def dir_names [] end
dir_path=(path)
click to toggle source
# File lib/active_event/support/autoload.rb, line 34 def dir_path=(path) @dirs = dir_names.map do |dir_name| "#{path}/#{dir_name}/**/*.rb" end end
dirs()
click to toggle source
# File lib/active_event/support/autoload.rb, line 40 def dirs @dirs ||= '' end