Method: IRB::Locale#load
- Defined in:
- lib/irb/locale.rb
#load(file) ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/irb/locale.rb', line 85 def load(file) found = find(file) if found unless @@loaded.include?(found) @@loaded << found # cache Kernel.load(found) end else raise LoadError, "No such file to load -- #{file}" end end |