Results for: "Pathname"

Represents writing local variables using a regular expression match with named capture groups.

/(?<foo>bar)/ =~ baz
^^^^^^^^^^^^^^^^^^^^

The top level node of any parse tree.

Represents the use of the splat operator.

[*a]
 ^^

This represents a location in the source.

This represents a comment that was encountered during parsing. It is the base class for all comment types.

InlineComment objects are the most common. They correspond to comments in the source file like this one that start with #.

EmbDocComment objects correspond to comments that are surrounded by =begin and =end.

This represents a magic comment that was encountered during parsing.

This represents an error that was encountered during parsing.

This represents a warning that was encountered during parsing.

This is a result specific to the ‘parse` and `parse_file` methods.

This is a result specific to the ‘parse_lex` and `parse_lex_file` methods.

Indicates a timeout resolving a name or address.

TruffleRuby >= 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY in defaults/truffleruby. However, TruffleRuby < 24 defines REUSE_AS_BINARY_ON_TRUFFLERUBY directly in its copy of lib/rubygems/platform.rb, so it is not defined if RubyGems is updated (gem update –system). Instead, we define it here in that case, similar to bundler/lib/bundler/rubygems_ext.rb. We must define it here and not in platform.rb because platform.rb is loaded before defaults/truffleruby.

Available list of platforms for targeting Gem installations.

See ‘gem help platform` for information on platform matching.

BasicSpecification is an abstract class which implements some common code used by both Specification and StubSpecification.

The command manager registers and installs all the individual sub-commands supported by the gem command.

Extra commands can be provided by writing a rubygems_plugin.rb file in an installed gem. You should register your command against the Gem::CommandManager instance, like this:

# file rubygems_plugin.rb
require 'rubygems/command_manager'

Gem::CommandManager.instance.register_command :edit

You should put the implementation of your command in rubygems/commands.

# file rubygems/commands/edit_command.rb
class Gem::Commands::EditCommand < Gem::Command
  # ...
end

See Gem::Command for instructions on writing gem commands.

Raised when attempting to uninstall a gem that isn’t in GEM_HOME.

No documentation available

Potentially raised when a specification is validated.

Used to raise parsing and loading errors

Potentially raised when a specification is validated.

No documentation available
No documentation available
No documentation available

Raised when a gem dependencies file specifies a ruby version that does not match the current version.

Search took: 6ms  ·  Total Results: 3265