serial

serial() Instance Public methods

slice!

str.slice!(fixnum) â fixnum or nilstr.slice!(fixnum, fixnum) â new_str or nilstr.slice!(range) â new_str or nilstr.slice!(regexp) â new_str or nilstr.slice!(other_str) â new_str or nil Instance Public methods Deletes the specified portion from str, and returns the portion deleted. string = "this is a string" string.slice!(2) #=> "i" string.slice!(3..6) #=> " is " string.slice!(/s.*t/) #=> "sa st" string.slice!("r")

add_class

add_class(class_type, given_name, superclass = '::Object') Instance Public methods Adds a class named given_name with superclass. Both given_name and superclass may contain '::', and are interpreted relative to the self context. This allows handling correctly examples like these: class RDoc::Gauntlet < Gauntlet module Mod class Object # implies < ::Object class SubObject < Object # this is _not_ ::Object Given class Container::Item RDoc assumes Container is a module

seek

ios.seek(amount, whence=IO::SEEK_SET) â 0 Instance Public methods Seeks to a given offset anInteger in the stream according to the value of whence: IO::SEEK_CUR | Seeks to _amount_ plus current position --------------+---------------------------------------------------- IO::SEEK_END | Seeks to _amount_ plus end of stream (you probably | want a negative value for _amount_) --------------+---------------------------------------------------- IO::SEEK_SET | Seeks to

create_database

create_database(name, options = {}) Instance Public methods Create a new MySQL database with optional :charset and :collation. Charset defaults to utf8. Example: create_database 'charset_test', charset: 'latin1', collation: 'latin1_bin' create_database 'matt_development' create_database 'matt_development', charset: :big5

new

new(config={}, default=Config::HTTP) Class Public methods Proxy server configurations. The proxy server handles the following configuration items in addition to those supported by HTTPServer: :ProxyAuthProc Called with a request and response to authorize a request :ProxyVia Appended to the via header :ProxyURI The proxy server's URI :ProxyContentHandler Called with a request and response and allows modification of the response :ProxyTimeout Sets the proxy timeouts to

open

Zlib::GzipWriter.open(filename, level=nil, strategy=nil) { |gz| ... } Class Public methods Opens a file specified by filename for writing gzip compressed data, and returns a GzipWriter object associated with that file. Further details of this method are found in ::new and Zlib::GzipFile.wrap.

get

get(*index) Instance Public methods

wait

Process.wait() â fixnumProcess.wait(pid=-1, flags=0) â fixnumProcess.waitpid(pid=-1, flags=0) â fixnum Class Public methods Waits for a child process to exit, returns its process id, and sets $? to a Process::Status object containing information on that process. Which child it waits on depends on the value of pid: > 0 Waits for the child whose process ID equals pid. 0 Waits for any child whose process group ID equals that of the calling process.

accept_verbatim

accept_verbatim(verbatim) Instance Public methods Adds verbatim to the output