Encode given str
to URL-encoded form data.
This method doesn’t convert *, -, ., 0-9, A-Z, _, a-z, but does convert SP (ASCII space) to + and converts others to %XX.
If enc
is given, convert str
to the encoding before percent encoding.
This is an implementation of www.w3.org/TR/2013/CR-html5-20130806/forms.html#url-encoded-form-data
This method is called when some event handler is undefined. event
is :on_XXX, token
is the scanned token, and data
is a data accumulator.
The return value of this method is passed to the next event handler (as of Enumerable#inject
).
See Zlib::GzipReader
documentation for a description.
Leaves IDLE.
Encode a string from UTF-8 format to modified UTF-7.
Returns the previous sibling that is an element, or nil if there is no Element
sibling prior to this one
doc = Document.new '<a><b/>text<c/></a>' doc.root.elements['c'].previous_element #-> <b/> doc.root.elements['b'].previous_element #-> nil
Returns the full name (name-version) of this Gem. Platform information is included (name-version-platform) if it is specified and not the default Ruby platform.
Full path of the target library file. If the file is not in this gem, return nil.
Indicated, based on the requested domain, if remote gems should be considered.
Reads the file index and extracts each file into the gem directory.
Ensures that files can’t be installed outside the gem directory.
Creates an installer for spec
that will install into gem_home
. If user
is true a user-install will be performed.
Returns the full name (name-version) of this Gem. Platform information is included if it is not the default Ruby platform. This mimics the behavior of Gem::Specification#full_name
.
Extracts the files in this package into destination_dir
If pattern
is specified, only entries matching that glob will be extracted.
The content-length header