Module: Corgibytes::Freshli::Commons::Platform
- Defined in:
- lib/corgibytes/freshli/commons/platform.rb
Overview
Contains helper methods for coping with platform specific differences
Class Method Summary collapse
Class Method Details
.normalize_file_separators(value) ⇒ Object
12 13 14 15 |
# File 'lib/corgibytes/freshli/commons/platform.rb', line 12 def self.normalize_file_separators(value) separator = File::ALT_SEPARATOR || File::SEPARATOR value.gsub('/', separator) end |
.null_output_target ⇒ Object
8 9 10 |
# File 'lib/corgibytes/freshli/commons/platform.rb', line 8 def self.null_output_target Gem.win_platform? ? 'NUL:' : '/dev/null' end |