Method: Path.null
- Defined in:
- lib/path.rb
.null ⇒ Object
A Path to the null device on the current platform.
38 39 40 41 42 43 44 45 |
# File 'lib/path.rb', line 38 def null new case RbConfig::CONFIG['host_os'] when /mswin|mingw/ then 'NUL' when /amiga/i then 'NIL:' when /openvms/i then 'NL:' else '/dev/null' end end |