text

text( path = nil ) Instance Public methods A convenience method which returns the String value of the first child text element, if one exists, and nil otherwise. Note that an element may have multiple Text elements, perhaps separated by other children. Be aware that this method only returns the first Text node. This method returns the value of the first text child node, which ignores the raw setting, so always returns normalized text. See the Text::value documentation. doc = Docum

index_by

index_by() Instance Public methods Convert an enumerable to a hash. people.index_by(&:login) => { "nextangle" => <Person ...>, "chade-" => <Person ...>, ...} people.index_by { |person| "#{person.first_name} #{person.last_name}" } => { "Chade- Fowlersburg-e" => <Person ...>, "David Heinemeier Hansson" => <Person ...>, ...}

get

get(action, *args) Instance Public methods Simulate a GET request with the given parameters. action: The controller action to call. parameters: The HTTP parameters that you want to pass. This may be nil, a hash, or a string that is appropriately encoded (application/x-www-form-urlencoded or multipart/form-data). session: A hash of parameters to store in the session. This may be nil. flash: A hash of parameters to store in the flash. This may be nil. You can also simulate

new

new(name, start, ending, transaction_id, payload) Class Public methods

new

new() Class Public methods

n_jobs

n_jobs() Instance Public methods The total number of irb sessions, used to set irb_name of the current Context.

timeout

timeout(n, e = nil, &block) Instance Public methods Identical to: Timeout::timeout(n, e, &block). This method is deprecated and provided only for backwards compatibility. You should use Timeout#timeout instead.

%

%(args) Instance Public methods

get_shlib_path_head

get_shlib_path_head() Instance Public methods

rdoc_options=

rdoc_options=(options) Instance Public methods Sets #rdoc_options to value, ensuring it is an array. Don't use this, push onto the array instead.