Method: GetText::MOFile#load
- Defined in:
- lib/gettext/runtime/mofile.rb
#load(arg) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/gettext/runtime/mofile.rb', line 72 def load(arg) if arg.kind_of? String begin st = File.stat(arg) @last_modified = [st.ctime, st.mtime] rescue Exception end load_from_file(arg) else load_from_stream(arg) end @filename = arg self end |