Create a new ConstantReadNode
node.
Create a new ConstantWriteNode
node.
Create a new EmbeddedVariableNode
node.
Create a new FlipFlopNode
node.
Create a new IndexTargetNode
node.
Create a new InterpolatedStringNode
node.
Create a new InterpolatedSymbolNode
node.
Create a new InterpolatedXStringNode
node.
Create a new MultiWriteNode
node.
Create a new PinnedVariableNode
node.
Create a new RescueModifierNode
node.
Create a new SingletonClassNode
node.
Retrieve the value of one of the ArgumentsNodeFlags
flags.
Retrieve the value of one of the ArrayNodeFlags
flags.
Creates a self-signed certificate with an issuer and subject from email
, a subject alternative name of email
and the given extensions
for the key
.
Retrieves the pre-configured API key key
or terminates interaction with an error.
Returns true when the user has enabled multifactor authentication from response
text and no otp provided by options.
Allows Gem::OptionParser
to handle HTTP URIs.
Asks for a password with a prompt
Asks the user to answer question
with an answer from the given list
.
If the stream begins with a BOM (byte order marker), consumes the BOM and sets the external encoding accordingly; returns the result encoding if found, or nil
otherwise:
File.write('t.tmp', "\u{FEFF}abc") io = File.open('t.tmp', 'rb') io.set_encoding_by_bom # => #<Encoding:UTF-8> io.close File.write('t.tmp', 'abc') io = File.open('t.tmp', 'rb') io.set_encoding_by_bom # => nil io.close
Raises an exception if the stream is not binmode or its encoding has already been set.
Sets the encoding according to the BOM (Byte Order Mark) in the string.
Returns self
if the BOM is found, otherwise +nil.
Open the specified filename (either in read-only mode or in read-write mode) and lock it for reading or writing.
The opened File
object will be returned. If read_only is true, and the file does not exist, then nil will be returned.
All exceptions are propagated.