AbstractSyntaxTree
provides methods to parse Ruby
code into abstract syntax trees. The nodes in the tree are instances of RubyVM::AbstractSyntaxTree::Node
.
This module is MRI specific as it exposes implementation details of the MRI abstract syntax tree.
This module is experimental and its API is not stable, therefore it might change without notice. As examples, the order of children nodes is not guaranteed, the number of children nodes might change, there is no way to access children nodes by name, etc.
If you are looking for a stable API or an API working under multiple Ruby
implementations, consider using the prism gem, which is the official Ruby
API to parse Ruby
code.
Extends command line arguments array (ARGV) to parse itself.
This module is responsible for converting the prism syntax tree into other syntax trees.
This module is used for safely loading Marshal
specs from a gem. The ‘safe_load` method defined on this module is specifically designed for loading Gem
specifications.
Module
that defines the default UserInteraction
. Any class including this module will have access to the ui
method that returns the default UI.
UserInteraction
allows RubyGems to interact with the user through standard methods that can be replaced with more-specific UI methods for different displays.
Since UserInteraction
dispatches to a concrete UI class you may need to reference other classes for specific behavior such as Gem::ConsoleUI
or Gem::SilentUI
.
Example:
class X include Gem::UserInteraction def get_answer n = ask("What is the meaning of life?") end end
Class
that parses String’s into URI’s.
It contains a Hash
set of patterns and Regexp’s that match and validate.
This is the JSON
parser implemented as a C extension. It can be configured to be used by setting
JSON.parser = JSON::Ext::Parser
with the method parser= in JSON
.
Generic error class for all errors raised in ASN1
and any of the classes defined in it.
This is the generic exception for OpenSSL::Engine
related errors
Generic exception class raised if an error occurs in OpenSSL::KDF
module.
Generic Exception
class that is raised if an error occurs during an operation on an instance of OpenSSL::Netscape::SPKI
.
OCSP
error class.