mv

mv() Instance Public methods Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY. ruby -run -e mv -- [OPTION] SOURCE DEST -v verbose

serve

serve(io) Instance Public methods

gets

gets() Instance Public methods Reads the next line from this input method. See IO#gets for more information.

formats=

formats=(extensions) Instance Public methods Sets the formats by string extensions. This differs from format= by allowing you to set multiple, ordered formats, which is useful when you want to have a fallback. In this example, the :iphone format will be used if it's available, otherwise it'll fallback to the :html format. class ApplicationController < ActionController::Base before_action :adjust_format_for_iphone_with_html_fallback private def adjust_format_for_iphone_w

stylesheet_path

stylesheet_path(source, options = {}) Instance Public methods Computes the path to a stylesheet asset in the public stylesheets directory. If the source filename has no extension, .css will be appended (except for explicit URIs). Full paths from the document root will be passed through. Used internally by stylesheet_link_tag to build the stylesheet path. stylesheet_path "style" # => /stylesheets/style.css stylesheet_path "dir/style.css"

check_trust

check_trust(chain, digester, trust_dir) Instance Public methods Ensures the root of chain has a trusted certificate in trust_dir and the digests of the two certificates match according to digester

acts_like?

acts_like?(duck) Instance Public methods A duck-type assistant method. For example, Active Support extends Date to define an acts_like_date? method, and extends Time to define acts_like_time?. As a result, we can do x.acts_like?(:time) and x.acts_like?(:date) to do duck-type-safe comparisons, since classes that we want to act like Time simply need to define an acts_like_time? method.

real?

cmp.real? â false Instance Public methods Returns false.

warn

warn(message) Instance Public methods Displays a warning using Kernel#warn if we're being verbose

fetch_path

fetch_path(uri, mtime = nil, head = false) Instance Public methods Downloads uri and returns it as a String.