Class: File

Inherits:
Object show all
Defined in:
lib/webget_ramp/file.rb

Class Method Summary collapse

Class Method Details

.joindir(dirname, *strings) ⇒ Object

Return File.join(File.dirname(dirname),strings)

Example

File.joindir(__FILE__,'foo.txt')
=> '/home/john/foo.txt'


9
10
11
# File 'lib/webget_ramp/file.rb', line 9

def File.joindir(dirname,*strings)
  File.join(File.dirname(dirname),strings)
end