Module: ASRake::Path
- Defined in:
- lib/asrake/util.rb
Class Method Summary collapse
Class Method Details
.back(str) ⇒ Object
42 43 44 |
# File 'lib/asrake/util.rb', line 42 def back(str) str.gsub("/", "\\") end |
.env(str) ⇒ Object
38 39 40 |
# File 'lib/asrake/util.rb', line 38 def env(str) ASRake::OS::is_windows? ? back(str) : forward(str) end |
.forward(str) ⇒ Object
46 47 48 |
# File 'lib/asrake/util.rb', line 46 def forward(str) str.gsub("\\", "/") end |