Method: Object.const_missing

Defined in:
lib/wings/dependencies.rb

.const_missing(c) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/wings/dependencies.rb', line 2

def self.const_missing(c)
  super if @calling_const_missing

  @calling_const_missing = true
  require Wings.to_underscore(c.to_s)
  klass = Object.const_get(c)
  @calling_const_missing = false

  klass
end