class Object

Constants

Public Class Methods

const_missing(const) click to toggle source
# File lib/auto_loader.rb, line 9
def self.const_missing(const)
  auto_load(const)
  Kernel.const_get(const)
end

Public Instance Methods

auto_load(const) click to toggle source
# File lib/auto_loader.rb, line 14
def auto_load(const)
  Gazebo::LOAD_PATHS.each do |dir|
    file = File.join(Gazebo::ROOT, dir, const.to_s.underscore)

    begin
      require_relative(file)
      return
    rescue LoadError => e
    end
  end
end