Class: IO

### Home Classes Methods

### In Files

- lib/posix/spawn.rb

### Parent

Object

### Methods

- #posix_fileno

### Files

- COPYING
- HACKING

### Class/Module Index

Quicksearch

- POSIX
- POSIX::Spawn
- POSIX::Spawn::Child
- POSIX::Spawn::MaximumOutputExceeded
- POSIX::Spawn::TimeoutExceeded
- IO

No matching classes.

# IO

### Public Instance Methods

posix_fileno() click to toggle source

    # File lib/posix/spawn.rb, line 11
    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

[Validate]

Generated with the Darkfish Rdoc Generator 2.