class

Stream

Inherits Reference < Object

Constructors

new(type : String)
Source

Instance methods

add(line : Line)

add line

Source
add(s : Stream)

add stream

Source
add(lines : Array(Line))

add array of Line to buffer

Source
add(s : String, spaces : Int32 = 0)

add string to buffer

Source
add(arr : Array(String), spaces : Int32 = 0)

add array to buffer

Source
add_empty(spaces : Int32 = 0)

add empty line to buffer

Source
buffer
Source
buffer=(buffer : Array(Line))
Source
clear

clear buffer

Source
indent
Source
indent=(indent : Int32)
Source
nr=(nr : Int32)
Source
size

returns the size of the buffer

Source
to_a

returns the string representation of the buffer

Source
to_s(separator : String = "")

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
type
Source
type=(type : String)
Source
write(filename : String)

save stream to file

Source