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 --

+

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.

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"

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.

null?

null? Instance Public methods Returns true if this is a null pointer.

new

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

finished?

finished?() Instance Public methods Returns true if any thread has terminated and is ready to be collected.

documented?

documented?() Instance Public methods Does this class or module have a comment with content or is received_nodoc true?