Sha256: 7c1bd0f7b6494e773e63ad1f1bee1c28070cecd9e55e32ed3836435f24d6a3d2
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
class FSPath < Pathname class << self # return current user home dir path if called without argument # if called with argument return specified user home dir path def ~(name = nil) new(File.expand_path("~#{name}")) end end end module Kernel # FSPath(path) method def FSPath(path) FSPath.new(path) end private :Pathname end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fspath-0.0.1 | lib/fspath.rb |