Class: Object

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

Overview

Override Object.const_missing

Class Method Summary collapse

Class Method Details

.const_missing(c) ⇒ Object

Convert Constants to snake_case and try to autoload them



4
5
6
7
# File 'lib/rapid_runty/dependencies.rb', line 4

def self.const_missing(c)
  require c.to_s.snake_case
  Object.const_get(c)
end