Results for: "Pathname"

No documentation available

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.

Return the name that the gemspec file would be

No documentation available

Return the default Gem path

Downloads uri and returns it as a String.

A recommended version for use with a ~> Requirement.

No documentation available
No documentation available

Paths in the gem to add to $LOAD_PATH when this gem is activated. If you have an extension you do not need to add "ext" to the require path, the extension build process will copy the extension files into β€œlib” for you.

The default value is "lib"

Usage:

# If all library files are in the root directory...
spec.require_paths = ['.']

Return full names of all specs in sorted order.

The default (generated) file name of the gem. See also spec_name.

spec.file_name # => "example-1.0.gem"
No documentation available

Return a NameTuple that represents this Specification

Singular accessor for require_paths

Singular accessor for require_paths

True if this gem has the same attributes as other.

The default name of the gemspec. See also file_name

spec.spec_name # => "example-1.0.gemspec"
No documentation available

Implementation for Specification#validate_metadata

Is spec in gem_dir?

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.

Protected setter for the path component v.

See also URI::Generic.path=.

Returns an Array of the path split on β€˜/’.

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>]]
Search took: 3ms  ·  Total Results: 2920