Sha256: 4efaf0d5a099e3c6e177b85146d037002781e9822c503fb3e09417d4872eac3d

Contents?: true

Size: 258 Bytes

Versions: 20

Compression:

Stored size: 258 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

20 entries across 19 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/file/null.rb
facets-3.1.0 lib/core/facets/file/null.rb
facets-3.0.0 lib/core/facets/file/null.rb
facets-2.9.3 lib/core/facets/file/null.rb
facets-2.9.2 src/core/facets/file/null.rb
facets-2.9.2 lib/core/facets/file/null.rb
facets-2.9.1 lib/core/facets/file/null.rb
facets-2.9.0 lib/core/facets/file/null.rb
facets-2.9.0.pre.2 lib/core/facets/file/null.rb
facets-2.9.0.pre.1 lib/core/facets/file/null.rb
facets-2.8.4 lib/core/facets/file/null.rb
facets-2.8.3 lib/core/facets/file/null.rb
facets-2.8.2 lib/core/facets/file/null.rb
facets-2.8.1 lib/core/facets/file/null.rb
facets-2.8.0 lib/core/facets/file/null.rb
facets-2.7.0 lib/core/facets/file/null.rb
facets-2.6.0 lib/core/facets/file/null.rb
facets-2.5.0 lib/core/facets/file/null.rb
facets-2.5.1 lib/core/facets/file/null.rb
facets-2.5.2 lib/core/facets/file/null.rb