connect

udpsocket.connect(host, port) => 0 Instance Public methods Connects udpsocket to host:port. This makes possible to send without destination address. u1 = UDPSocket.new u1.bind("127.0.0.1", 4913) u2 = UDPSocket.new u2.connect("127.0.0.1", 4913) u2.send "uuuu", 0 p u1.recvfrom(10) #=> ["uuuu", ["AF_INET", 33230, "localhost", "127.0.0.1"]]

stackorder_isabove 2

stackorder_isabove(target) Instance Public methods Also aliased as: stackorder_is_above, wm_stackorder_isabove, wm_stackorder_is_above

call

call(*args) Class Public methods Initializes a new responder and invokes the proper format. If the format is not defined, call to_format.

unset_cellattrib

unset_cellattrib(idx, name) Instance Public methods

new

new(absolute_name, relative_name = absolute_name) Class Public methods Creates a new TopLevel for the file at absolute_name. If documentation is being generated outside the source dir relative_name is relative to the source directory.

current_path 2

current_path() Instance Public methods

new

new(*args) Class Public methods

ip?

addrinfo.ip? => true or false Instance Public methods returns true if addrinfo is internet (IPv4/IPv6) address. returns false otherwise. Addrinfo.tcp("127.0.0.1", 80).ip? #=> true Addrinfo.tcp("::1", 80).ip? #=> true Addrinfo.unix("/tmp/sock").ip? #=> false

gcd

int.gcd(int2) â integer Instance Public methods Returns the greatest common divisor (always positive). 0.gcd(x) and x.gcd(0) return abs(x). 2.gcd(2) #=> 2 3.gcd(-7) #=> 1 ((1<<31)-1).gcd((1<<61)-1) #=> 1

use_markup

use_markup(content) Class Public methods If there is a markup: parser_name comment at the front of the file, use it to determine the parser. For example: # markup: rdoc # Class comment can go here class C end The comment should appear as the first line of the content. If the content contains a shebang or editor modeline the comment may appear on the second or third line. Any comment style may be used to hide the markup comment.