Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/jun/active_support/dependencies.rb
Class Method Summary collapse
Class Method Details
.const_missing(constant_name) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/jun/active_support/dependencies.rb', line 26 def self.const_missing(constant_name) file = Jun::ActiveSupport::Dependencies.find_file(constant_name.to_s.underscore) super if file.nil? require file.sub(/\.rb\z/, "") Object.const_get(constant_name) end |