Is this test being run on a Windows platform?
Is this test being run on a Windows platform?
Is this test being run on a Java platform?
Is this test being run on a Java platform?
Uninstalls gem spec
Removes installed executables and batch files (windows only) for gemspec
.
Is spec
in gem_dir
?
Terminate the application with exit code status
, running any exit handlers that might have been defined.
Checks the path v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :ABS_PATH and :REL_PATH.
Can not have a opaque component defined, with a path component defined.
Returns an Array
of the path split on ‘/’.
Merges a base path base
, with relative path rel
, returns a modified base path.
Private setter for attributes val
.
Constructs the default Hash
of patterns.
Constructs the default Hash
of patterns.
This method provides the metavariables defined by the revision 3 of “The WWW Common Gateway Interface Version 1.1” To browse the current document of CGI
Version 1.1, see below: tools.ietf.org/html/rfc3875
Creates the HTTPRequest
used when handling the HTTP request. Can be overridden by subclasses.
Creates the HTTPResponse
used when handling the HTTP request. Can be overridden by subclasses.
Returns an array containing the values associated with the given keys.
Returns the destination encoding as an encoding object.
Returns the destination encoding as an encoding object.
Returns the bytes to be read again when Encoding::InvalidByteSequenceError
occurs.
Returns the corresponding ASCII compatible encoding.
Returns nil if the argument is an ASCII compatible encoding.
“corresponding ASCII compatible encoding” is an ASCII compatible encoding which can represents exactly the same characters as the given ASCII incompatible encoding. So, no conversion undefined error occurs when converting between the two encodings.
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP> Encoding::Converter.asciicompat_encoding("UTF-16BE") #=> #<Encoding:UTF-8> Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
Returns a conversion path.
p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP") #=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>], # [#<Encoding:UTF-8>, #<Encoding:EUC-JP>]] p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", universal_newline: true) or p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", newline: :universal) #=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>], # [#<Encoding:UTF-8>, #<Encoding:EUC-JP>], # "universal_newline"] p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", universal_newline: true) or p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", newline: :universal) #=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>], # "universal_newline", # [#<Encoding:UTF-8>, #<Encoding:UTF-32BE>]]