Class Dependencies::RootLoadingModule
In: vendor/activesupport/lib/active_support/dependencies.rb
Parent: LoadingModule

Methods

clear!   load_file!   new   path   root  

Attributes

load_paths  [R] 

Public Class methods

[Source]

     # File vendor/activesupport/lib/active_support/dependencies.rb, line 113
113:     def initialize(*paths)
114:       @load_paths = paths.flatten.collect {|p| p.kind_of?(ConstantLoadPath) ? p : ConstantLoadPath.new(p)}
115:     end

Public Instance methods

Erase all items in this module

[Source]

     # File vendor/activesupport/lib/active_support/dependencies.rb, line 127
127:     def clear!
128:       constants.each do |name|
129:         Object.send(:remove_const, name) if Object.const_defined?(name)
130:         self.send(:remove_const, name)
131:       end
132:     end

Load the source file at the given file path

[Source]

     # File vendor/activesupport/lib/active_support/dependencies.rb, line 122
122:     def load_file!(file_path)
123:       require_dependency(file_path)
124:     end

[Source]

     # File vendor/activesupport/lib/active_support/dependencies.rb, line 119
119:     def path() [] end

[Source]

     # File vendor/activesupport/lib/active_support/dependencies.rb, line 117
117:     def root() self end

[Validate]