Implement the hash pattern matching interface for ParseError
.
Implement the hash pattern matching interface for ParseWarning
.
Implement the hash pattern matching interface for Result
.
Implement the hash pattern matching interface for ParseResult
.
Walk the tree and mark nodes that are on a new line, loosely emulating the behavior of CRuby’s ‘:line` tracepoint event.
Implement the hash pattern matching interface for LexResult
.
Implement the hash pattern matching interface for ParseLexResult
.
Implement the hash pattern matching interface for Token
.
Raise an error because the given node is not supported.
Returns the full path to the base gem directory.
eg: /usr/local/lib/ruby/gems/1.8
Full path of the target library file. If the file is not in this gem, return nil.
Paths in the gem to add to $LOAD_PATH
when this gem is activated.
See also require_paths=
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_path = '.'
Returns the paths to the source files for use with analysis and documentation tools. These paths are relative to full_gem_path.
Arguments used when building gems
Register the Symbol
command
as a gem command.
Unregister the Symbol
command
as a gem command.
Handle the command arguments.
Return a list of the gem specifications in the dependency list, sorted in order so that no gemspec in the list depends on a gemspec earlier in the list.
This is useful when removing gems from a set of installed gems. By removing them in the returned order, you don’t get into as many dependency issues.
If there are circular dependencies (yuck!), then gems will be returned in order until only the circular dependents and anything they reference are left. Then arbitrary gemspecs will be returned until the circular dependency is broken, after which gems will be returned in dependency order again.
Return a hash of predecessors. result[spec]
is an Array
of gemspecs that have a dependency satisfied by the named gemspec.
Count the number of gemspecs in the list specs
that are not in ignored
.