Class: Webcache::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/webget/webcache.rb

Instance Method Summary collapse

Instance Method Details

#rootObject

root directory - todo/check: find/use a better name - why? why not?



36
# File 'lib/webget/webcache.rb', line 36

def root()       @root || "#{Webcache.home}/.cache"; end

#root=(path) ⇒ Object



37
38
39
40
41
42
43
44
# File 'lib/webget/webcache.rb', line 37

def root=(path)
   ## note: use File.expand_path to "unify" and auto-expand path
   ##                to make sure always absolute
   ## e.g
   ##  C:\Users\roman  becomes
   ##  C:/Users/roman
    @root = File.expand_path(path)
end