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:
Any Map Style
Block Map Style
Flow Map Style
anchor[RW]
The optional anchor for this mapping
implicit[RW]
Is this an implicit mapping?
style[RW]
The style of this mapping
tag[RW]
The optional tag for this mapping
Public Class Methodsnew(anchor = nil, tag = nil, implicit = true, style = BLOCK) click to toggle source
Create a new Psych::Nodes::Mapping
object.
anchor
is the anchor associated with the map or nil
. tag
is the tag associated with the map or nil
. implicit
is a boolean indicating whether or not the map was implicitly started. style
is an integer indicating the mapping style.
See also Psych::Handler#start_mapping
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK super() @anchor = anchor @tag = tag @implicit = implicit @style = style endPublic Instance Methods
mapping?() click to toggle source
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4