rjust

str.rjust(integer, padstr=' ') â new_str Instance Public methods If integer is greater than the length of str, returns a new String of length integer with str right justified and padded with padstr; otherwise, returns str. "hello".rjust(4) #=> "hello" "hello".rjust(20) #=> " hello" "hello".rjust(20, '1234') #=> "123412341234123hello"

color_pair

color_pair(attrs) Class Public methods Sets the color pair attributes to attrs. This should be equivalent to ::attrset(COLOR_PAIR(attrs)) TODO: validate that equivalency

dataconfig

dataconfig(series, key, value=None) Instance Public methods

collection_radio_buttons

collection_radio_buttons(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block) Instance Public methods Returns radio button tags for the collection of existing return values of method for object's class. The value returned from calling method on the instance object will be selected. If calling method returns nil, no selection is made. The :value_method and :text_method parameters are methods to be called on each member of collection. Th

[]

[](name) Instance Public methods Returns the function mapped to name, that was created by either #extern or #bind

binary_mode

binary_mode() Class Public methods The mode needed to read a file as straight binary.

cursor

cursor() Instance Public methods Also aliased as: icursor

to_ary

to_ary() Instance Public methods Alias for: to_a

get_revisions

get_revisions(path) Class Public methods

getpeername

basicsocket.getpeername => sockaddr Instance Public methods Returns the remote address of the socket as a sockaddr string. TCPServer.open("127.0.0.1", 1440) {|serv| c = TCPSocket.new("127.0.0.1", 1440) s = serv.accept p s.getpeername #=> "\x02\x00\x82u\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" } If Addrinfo object is preferred over the binary string, use #remote_address.