toggle_recurse

toggle_recurse() Instance Public methods

new

new(str='') Class Public methods

set_transparency

set_transparency(x, y, state) Instance Public methods Makes the pixel at (x,y) transparent if state is true, and makes that pixel opaque otherwise.

new

new(addr, port = nil, isapop = false) Class Public methods Creates a new POP3 object. address is the hostname or ip address of your POP3 server. The optional port is the port to connect to. The optional isapop specifies whether this connection is going to use APOP authentication; it defaults to false. This method does not open the TCP connection.

titleize

titleize(word) Instance Public methods Capitalizes all the words and replaces some characters in the string to create a nicer looking title. titleize is meant for creating pretty output. It is not used in the Rails internals. titleize is also aliased as titlecase. 'man from the boondocks'.titleize # => "Man From The Boondocks" 'x-men: the last stand'.titleize # => "X Men: The Last Stand" 'TheManWithoutAPast'.titleize # => "The Man Without A Past" 'raiders_of_the

start

start(address, port = nil, account = nil, password = nil, isapop = false) Class Public methods Creates a new POP3 object and open the connection. Equivalent to Net::POP3.new(address, port, isapop).start(account, password) If block is provided, yields the newly-opened POP3 object to it, and automatically closes it at the end of the session. Example Net::POP3.start(addr, port, account, password) do |pop| pop.each_mail do |m| file.write m.pop m.delete end end

mark_remove

mark_remove(*nodes) Instance Public methods

add

thgrp.add(thread) â thgrp Instance Public methods Adds the given thread to this group, removing it from any other group to which it may have previously belonged. puts "Initial group is #{ThreadGroup::Default.list}" tg = ThreadGroup.new t1 = Thread.new { sleep } t2 = Thread.new { sleep } puts "t1 is #{t1}" puts "t2 is #{t2}" tg.add(t1) puts "Initial group now #{ThreadGroup::Default.list}" puts "tg group now #{tg.list}" produces: Initial group is #<Thread:0x401bdf4c> t1 is

add

add(o) Instance Public methods Adds the given object to the set and returns self. Use merge to add many elements at once. <<

sync

strio.sync â true Instance Public methods Returns true always.