ipv6_mc_sitelocal?

ipv6_mc_sitelocal?() Instance Public methods Returns true for IPv6 multicast site-local scope address. It returns false otherwise.

platform

platform(what) Instance Public methods Also aliased as: platforms

package_version

package_version() Class Public methods

getbinaryfile

getbinaryfile(remotefile, localfile = File.basename(remotefile), blocksize = DEFAULT_BLOCKSIZE) Instance Public methods Retrieves remotefile in binary mode, storing the result in localfile. If localfile is nil, returns retrieved data. If a block is supplied, it is passed the retrieved data in blocksize chunks.

process

process(action, *args) Instance Public methods Calls the action going through the entire action dispatch stack. The actual method that is called is determined by calling method_for_action. If no method can handle the action, then an ActionNotFound error is raised. Returns self

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