This class represents a YAML Scalar.
This node type is a terminal node and should not have any children.
Any style scalar, the emitter chooses
Double quoted style
Plain scalar style
Single quoted style
The anchor value (if there is one)
Is this a plain scalar?
Is this scalar quoted?
The style of this scalar
The tag value (if there is one)
The scalar value
Create a new Psych::Nodes::Scalar object.
value is the string value of the scalar
an associated anchor or nil
tag is an associated tag or nil
plain is a boolean value
quoted is a boolean
style is an integer idicating the string style
See also Psych::Handler#scalar
# File ext/psych/lib/psych/nodes/scalar.rb, line 57 def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY @value = value @anchor = anchor @tag = tag @plain = plain @quoted = quoted @style = style end