Class: Object

Inherits:
BasicObject
Defined in:
lib/feet/dependencies.rb

Class Method Summary collapse

Class Method Details

.const_missing(c) ⇒ Object



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

def self.const_missing(c)
  @const_missing_called ||= {}
  return nil if @const_missing_called[c]

  @const_missing_called[c] = true
  require Feet.to_snake_case(c.to_s)
  klass = Object.const_get(c)
  @const_missing_called[c] = false

  klass
end