Called before each event with line/column information.
Take a location from the prism parser and set the necessary instance variables.
Sets the continue timeout value, which is the number of seconds to wait for an expected 100 Continue response. If the HTTP object does not receive a response in this many seconds it sends the request body.
Sets the continue timeout value, which is the number of seconds to wait for an expected 100 Continue response. If the HTTP object does not receive a response in this many seconds it sends the request body.
Return the character offset for the given byte offset.
Return the character offset for the given byte offset.
A recommended version for use with a ~> Requirement.
Keeps track of all currently known specifications
Issues a warning for each file to be packaged which is world-readable.
Implementation for Specification#validate_permissions
Smushes logically “consecutive” lines
source = <<~'EOM' User. where(name: 'schneems'). first EOM lines = CleanDocument.new(source: source).join_consecutive!.lines expect(lines[0].to_s).to eq(source) expect(lines[1].to_s).to eq("")
The one known case this doesn’t handle is:
Ripper.lex <<~EOM a && b || c EOM
For some reason this introduces ‘on_ignore_newline` but with BEG type
do nothing
do nothing
Protected setter for the user
component, and password
if available (with validation).
See also URI::Generic.userinfo=
.
Escapes ‘user:password’ v
based on RFC 1738 section 3.1.
Private setter for extensions val
.