crc32_data

crc32_data(dat) Class Public methods

focus_item

focus_item(item = nil) Instance Public methods

view

view(*index) Instance Public methods Also aliased as: xview, yview

update

hmac.update(string) â self Instance Public methods Also aliased as: <<

recvfrom

ipsocket.recvfrom(maxlen) => [mesg, ipaddr]ipsocket.recvfrom(maxlen, flags) => [mesg, ipaddr] Instance Public methods Receives a message and return the message as a string and an address which the message come from. maxlen is the maximum number of bytes to receive. flags should be a bitwise OR of Socket::MSG_* constants. ipaddr is same as IPSocket#{peeraddr,addr}. u1 = UDPSocket.new u1.bind("127.0.0.1", 4913) u2 = UDPSocket.new u2.send "uuuu", 0, "127.0.0.1", 4913 p u

popen3

popen3(*cmd, &block) Class Public methods Open stdin, stdout, and stderr streams and start external executable. In addition, a thread for waiting the started process is noticed. The thread has a pid method and thread variable :pid which is the pid of the started process. Block form: Open3.popen3([env,] cmd... [, opts]) {|stdin, stdout, stderr, wait_thr| pid = wait_thr.pid # pid of the started process. ... exit_status = wait_thr.value # Process::Status object returned. } N

assert_dom_not_equal

assert_dom_not_equal(expected, actual, message = nil) Instance Public methods The negated form of assert_dom_equivalent. # assert that the referenced method does not generate the specified HTML string assert_dom_not_equal '<a href="http://www.example.com">Apples</a>', link_to("Oranges", "http://www.example.com")

capture2

capture2(*cmd) Class Public methods ::capture2 captures the standard output of a command. stdout_str, status = Open3.capture2([env,] cmd... [, opts]) The arguments env, cmd and opts are passed to ::popen3 except opts and opts. See Process.spawn. If opts is specified, it is sent to the command's standard input. If opts is true, internal pipes are set to binary mode. Example: # factor is a command for integer factorization. o, s = Open3.capture2("factor", :stdin_data=>"42") p o #

show

show() Class Public methods

popen2

popen2(*cmd, &block) Class Public methods ::popen2 is similer to ::popen3 except it doesn't make a pipe for the standard error stream. Block form: Open3.popen2([env,] cmd... [, opts]) {|stdin, stdout, wait_thr| pid = wait_thr.pid # pid of the started process. ... exit_status = wait_thr.value # Process::Status object returned. } Non-block form: stdin, stdout, wait_thr = Open3.popen2([env,] cmd... [, opts]) ... stdin.close # stdin and stdout should be closed explicitly in