warpto 2

warpto(win = None) Class Public methods Also aliased as: warp_to

to_a

ARGF.to_a(sep=$/) â arrayARGF.to_a(limit) â arrayARGF.to_a(sep, limit) â array Instance Public methods Reads ARGF's current file in its entirety, returning an Array of its lines, one line per element. Lines are assumed to be separated by sep. lines = ARGF.readlines lines[0] #=> "This is line one\n"

readpartial

ARGF.readpartial(maxlen) â stringARGF.readpartial(maxlen, outbuf) â outbuf Instance Public methods Reads at most maxlen bytes from the ARGF stream. It blocks only if ARGF has no data immediately available. If the optional outbuf argument is present, it must reference a String, which will receive the data. The outbuf will contain only the received data after the method call even if it is not empty at the beginning. It raises EOFError on end of file. readpartial is

read

ARGF.read([length [, outbuf]]) â string, outbuf, or nil Instance Public methods Reads _length_ bytes from ARGF. The files named on the command line are concatenated and treated as a single file by this method, so when called without arguments the contents of this pseudo file are returned in their entirety. _length_ must be a non-negative integer or nil. If it is a positive integer, +read+ tries to read at most _length_ bytes. It returns nil if an EOF was encountered before any

pos

ARGF.pos â Integer Instance Public methods Returns the current offset (in bytes) of the current file in ARGF. ARGF.pos #=> 0 ARGF.gets #=> "This is line one\n" ARGF.pos #=> 17

to_s

to_s() Instance Public methods

tag_key

tag_key() Instance Public methods

started?

started?() Instance Public methods true if the SMTP session has been started.

pp

pp(*objs) Instance Public methods Same as ppx, except it uses the prefix given during object initialization. See IRB::OutputMethod#ppx for more detail.

token_cget

token_cget(win, option) Class Public methods