Sha256: eb113f2c17cf0cd7a7282b84d6c7472f643ac142807e78034e5df4bdf093d25b

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

class File

  # Platform dependent null device.
  #
  #   CREDIT: Daniel Burger

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.3.0 lib/core/facets/file/null.rb
facets-2.2.1 lib/core/facets/file/null.rb