Method: Pathname.null

Defined in:
lib/standard/facets/pathname/null.rb

.nullObject

Platform dependent null device.

CREDIT: Daniel Burger



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/standard/facets/pathname/null.rb', line 7

def self.null
  case RUBY_PLATFORM
  when /mswin/i
    'NUL'
  when /amiga/i
    'NIL:'
  when /openvms/i
    'NL:'
  else
    '/dev/null'
  end
end