Method: Bookbinder::FileSystem::Directory#get_file
- Defined in:
- lib/bookbinder/file_system/directory.rb
#get_file(path, mode = 'r', &blk) ⇒ Object
33 34 35 36 37 |
# File 'lib/bookbinder/file_system/directory.rb', line 33 def get_file(path, mode = 'r', &blk) fpath = full_path(path) must_exist(fpath) if mode[0] != 'w' File.open(fpath, mode, &blk) end |