Sha256: 056ec10e056c6c18d8dac12a0c0e92f55d6f532542c282b46e624a388eb94291
Contents?: true
Size: 371 Bytes
Versions: 9
Compression:
Stored size: 371 Bytes
Contents
class IO if defined? JRUBY_VERSION require 'jruby' def posix_fileno case self when STDIN, $stdin 0 when STDOUT, $stdout 1 when STDERR, $stderr 2 else JRuby.reference(self).getOpenFile.getMainStream.getDescriptor.getChannel.getFDVal end end else alias :posix_fileno :fileno end end
Version data entries
9 entries across 9 versions & 1 rubygems