User home directory lookup adapted from RubyGems.
# File lib/rubigen/lookup.rb, line 25
25: def Dir.user_home
26: if ENV['HOME']
27: ENV['HOME']
28: elsif ENV['USERPROFILE']
29: ENV['USERPROFILE']
30: elsif ENV['HOMEDRIVE'] and ENV['HOMEPATH']
31: "#{ENV['HOMEDRIVE']}:#{ENV['HOMEPATH']}"
32: else
33: File.expand_path '~'
34: end
35: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.