Method: NFS::Handler#add_filehandle
- Defined in:
- lib/nfs/handler.rb
#add_filehandle(file) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/nfs/handler.rb', line 34 def add_filehandle(file) if @file_objects.include?(file) @file_objects[file] else @next_fh.dup.tap do |fh| @fh_table[fh] = file @file_objects[file] = fh @next_fh.increment! end end end |