Class: Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/wordfor/core_ext/dir.rb

Class Method Summary collapse

Class Method Details

.home(user) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/wordfor/core_ext/dir.rb', line 4

def home user
  if ENV['HOME']
    home = ENV['HOME']
  else
    raise "set your $HOME environment variable or upgrade to Ruby 1.9+ :("
  end
end