The state of the lexer when this token was produced.
Formats the errors in a human-readable way and return them as a string.
Reparse the value and return the parse result.
Reparse the file and return the parse result.
Reparse the string and return the parse result.
Parses a source buffer and returns the AST, the source code comments, and the tokens emitted by the lexer.
True if the parser encountered an error during parsing.
Lazily initialize the parse result.
Creates a new DNS
name from arg
. arg
can be:
returns the domain name as a string.
The domain name doesn’t have a trailing dot even if the name object is absolute.
Example:
p Resolv::DNS::Name.create("x.y.z.").to_s #=> "x.y.z" p Resolv::DNS::Name.create("x.y.z").to_s #=> "x.y.z"
Creates a new LOC::Size
from arg
which may be:
Creates a new LOC::Coord
from arg
which may be:
LOC::Coord
returns arg
.
String
arg
must match the LOC::Coord::Regex constant
Creates a new LOC::Alt
from arg
which may be:
Block form for restricting gems to a set of platforms.
The gem dependencies platform is different from Gem::Platform
. A platform gem.deps.rb platform matches on the ruby engine, the ruby version and whether or not windows is allowed.
Matches non-windows, non-jruby implementations where X and Y can be used to match releases in the 1.8, 1.9, 2.0 or 2.1 series.
Matches non-windows C Ruby
(Matz Ruby
) or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches 32 bit C Ruby
on MinGW or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches 64 bit C Ruby
on MinGW or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches 32 bit C Ruby
on Microsoft Windows or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches 64 bit C Ruby
on Microsoft Windows or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches JRuby or JRuby in 1.8 or 1.9 mode.
Matches Maglev
Matches non-windows Rubinius
NOTE: There is inconsistency in what environment a platform matches. You may need to read the source to know the exact details.
Block form for restricting gems to a particular set of platforms. See platform
.
The contents of the lock file.
True if the requested gem has already been installed.
Return the ActivationRequest
that contained the dependency that we were activated for.