This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

StringIO

        # StringIO < Object

---
# Includes:
(from ruby core)
    Enumerable
    IO::generic_readable
    IO::generic_writable

(from ruby core)
---
Pseudo I/O on String object, with interface corresponding to IO.

Commonly used to simulate `$stdio` or `$stderr`

### Examples

    require 'stringio'

    # Writing stream emulation
    io = StringIO.new
    io.puts "Hello World"
    io.string #=> "Hello World\n"

    # Reading stream emulation
    io = StringIO.new "first\nsecond\nlast\n"
    io.getc #=> "f"
    io.gets #=> "irst\n"
    io.read #=> "second\nlast\n"
---
# Constants:

VERSION
:   [not documented]


# Class methods:

    new
    open

# Instance methods:

    binmode
    close
    close_read
    close_write
    closed?
    closed_read?
    closed_write?
    each
    each_byte
    each_char
    each_codepoint
    each_line
    eof
    eof?
    external_encoding
    fcntl
    fileno
    flush
    fsync
    getbyte
    getc
    gets
    internal_encoding
    isatty
    length
    lineno
    lineno=
    pid
    pos
    pos=
    putc
    read
    readlines
    reopen
    rewind
    seek
    set_encoding
    set_encoding_by_bom
    size
    string
    string=
    sync
    sync=
    tell
    truncate
    tty?
    ungetbyte
    ungetc
    write


      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.