Module: NHKore::Fileable::ClassMethods

Defined in:
lib/nhkore/fileable.rb

Overview

Auto-extended when Fileable is included.

Instance Method Summary collapse

Instance Method Details

#load_file(file, mode: 'rt:BOM|UTF-8', **kargs) ⇒ Object



26
27
28
29
30
# File 'lib/nhkore/fileable.rb', line 26

def load_file(file,mode: 'rt:BOM|UTF-8',**kargs)
  data = File.read(file,mode: mode,**kargs)

  return load_data(data,file: file,**kargs)
end