add_key_option

add_key_option() Instance Public methods Add the âkey option

select

select(*components) Instance Public methods Args components Multiple Symbol arguments defined in URI::HTTP Description Selects specified components from URI Usage require 'uri' uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx') p uri.select(:userinfo, :host, :path) # => ["myuser:mypass", "my.example.com", "/test.rbx"]

conditional_hello_with_expires_in_with_public

conditional_hello_with_expires_in_with_public() Instance Public methods

prompt_mode=

prompt_mode=(mode) Instance Public methods Sets the mode of the prompt in this context. See Customizing the IRB Prompt at IRB for more information.

each

ary.each { |item| block } â aryary.each â Enumerator Instance Public methods Calls the given block once for each element in self, passing that element as a parameter. An Enumerator is returned if no block is given. a = [ "a", "b", "c" ] a.each {|x| print x, " -- " } produces: a -- b -- c --

getc

ios.getc â string or nil Instance Public methods Reads a one-character string from ios. Returns nil if called at end of file. f = File.new("testfile") f.getc #=> "h" f.getc #=> "e"

+

ary + other_ary â new_ary Instance Public methods Concatenation â Returns a new array built by concatenating the two arrays together to produce a third array. [ 1, 2, 3 ] + [ 4, 5 ] #=> [ 1, 2, 3, 4, 5 ] a = [ "a", "b", "c" ] a + [ "d", "e", "f" ] a #=> [ "a", "b", "c", "d", "e", "f" ] See also #concat.

parse

parse(str) Class Public methods

>

> source Instance Public methods Outputs from source, which is either a string of a file name or an IO object.

new

new(*threads) Class Public methods Creates a ThreadsWait object, specifying the threads to wait on. Non-blocking.