add_constant

add_constant(constant) Instance Public methods Records the parsing of constant

freeze

obj.freeze â obj Instance Public methods Prevents further modifications to obj. A RuntimeError will be raised if modification is attempted. There is no way to unfreeze a frozen object. See also Object#frozen?. This method returns self. a = [ "a", "b", "c" ] a.freeze a << "z" produces: prog.rb:3:in `<<': can't modify frozen array (RuntimeError) from prog.rb:3

new

new(config, drb) Class Public methods

getquota

getquota(mailbox) Instance Public methods Sends the GETQUOTA command along with specified mailbox. If this mailbox exists, then an array containing a Net::IMAP::MailboxQuota object is returned. This command generally is only available to server admin.

text_field

text_field(name = "", value = nil, size = 40, maxlength = nil) Instance Public methods Generate a text field Input element, as a String. name is the name of the input field. value is its initial value. size is the size of the input area. maxlength is the maximum length of input accepted. Alternatively, the attributes can be specified as a hash. text_field("name") # <INPUT TYPE="text" NAME="name" SIZE="40"> text_field("name", "value") # <INPUT TYPE="text" NAME="name

_unset_global_var

_unset_global_var(p1) Instance Public methods

recvfrom

unixsocket.recvfrom(maxlen [, flags]) => [mesg, unixaddress] Instance Public methods Receives a message via unixsocket. maxlen is the maximum number of bytes to receive. flags should be a bitwise OR of Socket::MSG_* constants. s1 = Socket.new(:UNIX, :DGRAM, 0) s1_ai = Addrinfo.unix("/tmp/sock1") s1.bind(s1_ai) s2 = Socket.new(:UNIX, :DGRAM, 0) s2_ai = Addrinfo.unix("/tmp/sock2") s2.bind(s2_ai) s3 = UNIXSocket.for_fd(s2.fileno) s1.send "a", 0, s2_ai p s3.recvfrom(10) #=> ["

log

log(msg) Instance Protected methods Log a message to stdlog, if it's defined. This implementation outputs the timestamp and message to the log. msg the message to log

to_s

to_s() Instance Public methods

set_window_element

set_window_element(idxs, win) Instance Public methods