Sha256: 1fe7efd1723e021172184516511535eae129141b627c1132b951ba152e3f6881

Contents?: true

Size: 198 Bytes

Versions: 3

Compression:

Stored size: 198 Bytes

Contents

# Override Object.const_missing
class Object
  # Convert Constants to snake_case and try to autoload them
  def self.const_missing(c)
    require c.to_s.snake_case
    Object.const_get(c)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rapid_runty-0.1.4 lib/rapid_runty/dependencies.rb
rapid_runty-0.1.3 lib/rapid_runty/dependencies.rb
rapid_runty-0.1.2 lib/rapid_runty/dependencies.rb