Module: Utils
- Defined in:
- lib/basketcase.rb
Instance Method Summary collapse
Instance Method Details
#mkpath(path) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/basketcase.rb', line 13 def mkpath(path) path = path.to_str path = path.tr('\\', '/') path = path.sub(%r{^\./},'') path = path.sub(%r{^([A-Za-z]):\/}, '/cygdrive/\1/') Pathname.new(path) end |