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.