parse_int

parse_int(string) Instance Public methods Parse and return an int from string

rewind

rewind() Instance Public methods Resets the position of the file pointer to the point created the GzipReader object. The associated IO object needs to respond to the seek method.

autoload_once

autoload_once() Instance Public methods

tag_cget_strict

tag_cget_strict(tagOrId, option) Instance Public methods

to_feed

to_feed(rss, source) Instance Public methods

see

see(node) Instance Public methods

helper_method

helper_method(*meths) Instance Public methods Declare a controller method as a helper. For example, the following makes the current_user controller method available to the view: class ApplicationController < ActionController::Base helper_method :current_user, :logged_in? def current_user @current_user ||= User.find_by(id: session[:user]) end def logged_in? current_user != nil end end In a view: <% if logged_in? -%>Welcome, <%= current_user.name %>

to_set

to_set(klass = Set, *args, &block) Instance Public methods Makes a set from the enumerable object with given arguments. Needs to +require âsetâ+ to use this method.

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 ...>, ...}