lib/GDO.rb
def const_missing(const_name)
      path = name.gsub('::', '/') + "/#{const_name}"
      require path
      if self.const_defined?("#{const_name}")
        self.const_get("#{const_name}")
      else
        raise ::GDO::Core::Exception.new(t(:err_missing_const, self.name, const_name, path))
      end
      rescue LoadError => e
      ::GDO::Core::Log.error(t(:err_gdo_autoload, name, const_name, path))
      ::GDO::Core::Log.exception(e)
      raise ::GDO::Core::Exception.new(t(:err_autoload_missing_file, path))
      nil
    end
# Simply include missing constants as is in the file system. e.g.: GDO::Net::GDT_Url  => require "GDO/Net/GDT_Url"
Simply include missing constants as is in the file system.
Simply include missing constants as is in the file system .
def const_missing(const_name)
      path = name.gsub('::', '/') + "/#{const_name}"
      require path
      if self.const_defined?("#{const_name}")
        self.const_get("#{const_name}")
      else
        raise ::GDO::Core::Exception.new(t(:err_missing_const, self.name, const_name, path))
      end
      rescue LoadError => e
      ::GDO::Core::Log.error(t(:err_gdo_autoload, name, const_name, path))
      ::GDO::Core::Log.exception(e)
      raise ::GDO::Core::Exception.new(t(:err_autoload_missing_file, path))
      nil
    end
def const_missing ( const_name ) path = name . gsub ( '::' , '/' ) + "/#{const_name}" require path if self . const_defined? ( "#{const_name}" ) self . const_get ( "#{const_name}" ) else raise :: GDO :: Core :: Exception . new ( t ( :err_missing_const , self . name , const_name , path ) ) end rescue LoadError => e :: GDO :: Core :: Log . error ( t ( :err_gdo_autoload , name , const_name , path ) ) :: GDO :: Core :: Log . exception ( e ) raise :: GDO :: Core :: Exception . new ( t ( :err_autoload_missing_file , path ) ) nil end
Simply include missing constants as is in the file system.
Simply include missing constants as is in the file system .
const_name