Top Level Namespace

Defined Under Namespace

Modules: Rubinjam

Instance Method Summary collapse

Methods included from Rubinjam::BaseAutoloadFix

included

Instance Method Details

#require(file) ⇒ Object



99
100
101
102
103
104
105
106
107
108
# File 'lib/rubinjam/internal.rb', line 99

def require(file)
  normalized_file = Rubinjam.normalize_file(file)
  if code = Rubinjam::LIBRARIES[normalized_file]
    return if code == :loaded
    eval(code, TOPLEVEL_BINDING, "rubinjam/#{normalized_file}.rb")
    Rubinjam::LIBRARIES[normalized_file] = :loaded
  else
    super
  end
end