Occasionally it’s helpful to treat a string as if it were interpolated so that there’s a consistent interface for working with strings.
Occasionally it’s helpful to treat a string as if it were interpolated so that there’s a consistent interface for working with strings.
Replace the value of offsets with the given value.
Return the byte offset of the start of the line corresponding to the given byte offset.
Freeze this object and the objects it contains.
The line number where this location starts.
The column number in bytes where this location starts from the start of the line.
Implement the hash pattern matching interface for Location
.
Implement the pretty print interface for Location
.
Implement the hash pattern matching interface for Comment
.
Implement the hash pattern matching interface for MagicComment
.
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
.
Implement the hash pattern matching interface for LexResult
.
Implement the hash pattern matching interface for ParseLexResult
.
Implement the hash pattern matching interface for Token
.
Implement the pretty print interface for Token
.
Freeze this object and the objects it contains.
Shortcut for combining two procs into one that returns true if either returns true.
Raise an error because the given node is not supported.
Iterates over all IP addresses for name
retrieved from the hosts file.
Iterates over all IP addresses for name
retrieved from the DNS
resolver.
name
can be a Resolv::DNS::Name
or a String
. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6
Iterates over all typeclass
DNS
resources for name
. See getresource
for argument details.