Class: IFile

Inherits:
Object
  • Object
show all
Defined in:
model/files.rb

Overview

File stored on Buhos.

I named it IFile, to not collide with base Class File. Every file is indexed by its hash (SHA256), calculated using the content of the file.

Instance Method Summary collapse

Instance Method Details

#absolute_path(basedir) ⇒ Object



35
36
37
# File 'model/files.rb', line 35

def absolute_path(basedir)
  "#{basedir}/#{self[:file_path]}"
end