Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/tipster/files/file.rb

Class Method Summary collapse

Class Method Details

.root(file) ⇒ Object



4
5
6
# File 'lib/tipster/files/file.rb', line 4

def self.root(file)
  expand_path('../../../', dirname(__FILE__)) << '/' << file
end

.temp(file) ⇒ Object



7
8
9
# File 'lib/tipster/files/file.rb', line 7

def self.temp(file)
  expand_path File.expand_path Dir.tmpdir << '/' << file
end