This class represents a YAML Mapping.
A Psych::Nodes::Mapping
node may have 0 or more children, but must have an even number of children. Here are the valid children a Psych::Nodes::Mapping
node may have:
Handles “Negotiate” type authentication. Geared towards authenticating with a proxy server over HTTP
Raised when the buffer cannot be allocated for some reason, or you try to use a buffer that’s not allocated.
Raised if you try to access a buffer slice which no longer references a valid memory range of the underlying source.
Raised if the mask given to a binary operation is invalid, e.g. zero length or overlaps the target buffer.
Tokens where state should be ignored used for :on_comment, :on_heredoc_end, :on_embexpr_end
An error class raised when dynamic parts are found while computing a constant path’s full name. For example: Foo::Bar::Baz -> does not raise because all parts of the constant path are simple constants var::Bar::Baz -> raises because the first part of the constant path is a local variable
An error class raised when missing nodes are found while computing a constant path’s full name. For example:
-> raises because the constant path is missing the last part
Raised when the query given to a pattern is either invalid Ruby syntax or is using syntax that we don’t yet support.
A location field represents the location of some part of the node in the source code. For example, the location of a keyword or an operator. It resolves to a Prism::Location
in Ruby.
An optional location field represents the location of some part of the node in the source code that may or may not be present. It resolves to either a Prism::Location
or nil in Ruby.
A float field represents a double-precision floating point value. It is used exclusively to represent the value of a floating point literal. It resolves to a Float
in Ruby.