Results for: "uri"

Returns the paths to the source files for use with analysis and documentation tools. These paths are relative to full_gem_path.

No documentation available
No documentation available

Ensure that the dependency is satisfied by the current installation of gem. If it is not an exception is raised.

spec

Gem::Specification

dependency

Gem::Dependency

Writes the .gemspec specification (in Ruby) to the gem home’s specifications directory.

No documentation available

Verifies entry in a .gem file.

Verifies the files of the gem

No documentation available
No documentation available

Resolve the requested dependencies against the gems available via Gem.path and return an Array of Specification objects to be activated.

No documentation available

Yields each source in the list.

Return the list of all array-oriented instance variables.

Return the list of all instance variables.

Is name a required attribute?

Required specification attributes

Sanitize a single string.

Returns the full path to this spec’s ri directory.

True if this gem has the same attributes as other.

No documentation available

Returns an array of CodeLine objects from the source string

No documentation available

Invoked by IO#pwrite or IO::Buffer#pwrite to write length bytes to io at offset from into a specified buffer (see IO::Buffer) at the given offset.

This method is semantically the same as io_write, but it allows to specify the offset to write to and is often better for asynchronous IO on the same file.

The method should be considered experimental.

Returns the source encoding as an encoding object.

Note that the result may not be equal to the source encoding of the encoding converter if the conversion has multiple steps.

ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") # ISO-8859-1 -> UTF-8 -> EUC-JP
begin
  ec.convert("\xa0") # NO-BREAK SPACE, which is available in UTF-8 but not in EUC-JP.
rescue Encoding::UndefinedConversionError
  p $!.source_encoding              #=> #<Encoding:UTF-8>
  p $!.destination_encoding         #=> #<Encoding:EUC-JP>
  p $!.source_encoding_name         #=> "UTF-8"
  p $!.destination_encoding_name    #=> "EUC-JP"
end
Search took: 4ms  ·  Total Results: 1005