Generate an Image Button Input element as a string.
src
is the URL of the image to use for the button. name
is the input name. alt
is the alternative text for the image.
Alternatively, the attributes can be specified as a hash.
image_button("url") # <INPUT TYPE="image" SRC="url"> image_button("url", "name", "string") # <INPUT TYPE="image" SRC="url" NAME="name" ALT="string"> image_button("SRC" => "url", "ALT" => "string") # <INPUT TYPE="image" SRC="url" ALT="string">
Returns a list of encodings in Content-Encoding field as an array of strings.
The encodings are downcased for canonicalization.
A node-set is converted to a string by returning the concatenation of the string-value of each of the children of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned.
Kouhei fixed this
Kouhei fixed this too
UNTESTED
UNTESTED
Adds a maker to the set of supported makers
Temporarily turn off warnings. Intended for tests only.
Temporarily turn off warnings. Intended for tests only.
Signs in with the RubyGems API at sign_in_host
and sets the rubygems API key.
Wraps text
to wrap
characters and optionally indents by indent
characters
This code is based directly on the Text
gem implementation Returns a value representing the “cost” of transforming str1 into str2