hasbutton

hasbutton(st=None) Instance Public methods Also aliased as: has_button

to_text

to_text() Instance Public methods

setup_pager

setup_pager() Instance Public methods Sets up a pager program to pass output through. Tries the RI_PAGER and PAGER environment variables followed by pager, less then more.

real?

cmp.real? â false Instance Public methods Returns false.

nonzero?

num.nonzero? â self or nil Instance Public methods Returns self if num is not zero, nil otherwise. This behavior is useful when chaining comparisons: a = %w( z Bb bB bb BB a aA Aa AA A ) b = a.sort {|a,b| (a.downcase <=> b.downcase).nonzero? || a <=> b } b #=> ["A", "a", "AA", "Aa", "aA", "BB", "Bb", "bB", "bb", "z"]

entry_size

entry_size() Instance Public methods

tcp_server_sockets

tcp_server_sockets(host=nil, port) Class Public methods creates TCP/IP server sockets for host and port. host is optional. If no block given, it returns an array of listening sockets. If a block is given, the block is called with the sockets. The value of the block is returned. The socket is closed when this method returns. If port is 0, actual port number is chosen dynamically. However all sockets in the result has same port number. # tcp_server_sockets returns two sockets. socket

syssign

dsa.syssign(string) â aString Instance Public methods Computes and returns the DSA signature of string, where string is expected to be an already-computed message digest of the original input data. The signature is issued using the private key of this DSA instance. Parameters string is a message digest of the original input data to be signed Example dsa = OpenSSL::PKey::DSA.new(2048) doc = "Sign me" digest = OpenSSL::Digest::SHA1.digest(doc) sig = dsa.syssign(digest)

image

image() Instance Public methods

remove_column

remove_column(table_name, column_name, type = nil, options = {}) Instance Public methods Removes the column from the table definition. remove_column(:suppliers, :qualification) The type and options parameters will be ignored if present. It can be helpful to provide these in a migration's change method so it can be reverted. In that case, type and options will be used by add_column.