size=

size=(new_value) Instance Public methods Also aliased as: set_size, image_size=

childNodes

childNodes() Instance Public methods IXMLDOMNodeList childNodes the collection of the node's children

names

mtch.names â [name1, name2, ...] Instance Public methods Returns a list of names of captures as an array of strings. It is same as mtch.regexp.names. /(?<foo>.)(?<bar>.)(?<baz>.)/.match("hoge").names #=> ["foo", "bar", "baz"] m = /(?<x>.)(?<y>.)?/.match("a") #=> #<MatchData "a" x:"a" y:nil> m.names #=> ["x", "y"]

area

area(*args) Instance Public methods

get_screen_size

Readline.get_screen_size â [rows, columns] Class Public methods Returns the terminal's rows and columns. See GNU Readline's rl_get_screen_size function. Raises NotImplementedError if the using readline library does not support. Raises SecurityError exception if $SAFE is 4.

set_log

set_log(logdev, shift_age = 0, shift_size = 1024000) Instance Public methods Sets the log device for this application. See Logger.new for an explanation of the arguments.

rassoc

ary.rassoc(obj) â new_ary or nil Instance Public methods Searches through the array whose elements are also arrays. Compares obj with the second element of each contained array using obj.==. Returns the first contained array that matches obj. See also #assoc. a = [ [ 1, "one"], [2, "two"], [3, "three"], ["ii", "two"] ] a.rassoc("two") #=> [2, "two"] a.rassoc("four") #=> nil

hex

hex(n=nil) Class Public methods ::hex generates a random hex string. The argument n specifies the length of the random length. The length of the result string is twice of n. If n is not specified, 16 is assumed. It may be larger in future. The result may contain 0-9 and a-f. p SecureRandom.hex #=> "eb693ec8252cd630102fd0d0fb7c3485" p SecureRandom.hex #=> "91dc3bfb4de5b11d029d376634589b61" If secure random number generator is not available, NotImplementedError is raised.

protected_method_defined?

mod.protected_method_defined?(symbol) â true or false Instance Public methods Returns true if the named protected method is defined by mod (or its included modules and, if mod is a class, its ancestors). module A def method1() end end class B protected def method2() end end class C < B include A def method3() end end A.method_defined? :method1 #=> true C.protected_method_defined? "method1" #=> false C.protected_method_defined? "method2" #=

shellescape

shellescape(str) Class Public methods Escapes a string so that it can be safely used in a Bourne shell command line. str can be a non-string object that responds to to_s. Note that a resulted string should be used unquoted and is not intended for use in double quotes nor in single quotes. argv = Shellwords.escape("It's better to give than to receive") argv #=> "It\\'s\\ better\\ to\\ give\\ than\\ to\\ receive" String#shellescape is a shorthand for this function. argv = "It's