class Psych::Handler

def scalar value, anchor, tag, plain, quoted, style


["many\nnewlines\n", nil, nil, false, true, 4 ]
["many lines", nil, nil, true, false, 1 ]
["fun", "anchor", nil, true, false, 1 ]
["foo", nil, "!str", false, false, 3 ]
# value anchor tag plain quoted style

the parameters sent to this method in the same order:
The above YAML document contains a list with four strings. Here are

newlines
many
- |
lines
- many
- &anchor fun
- !str "foo"
---

method can be called:
Here is a YAML document that exercises most of the possible ways this

=== Example

+style+
See the constants in Psych::Nodes::Scalar for the possible values of

+style+ is an integer idicating the string style
+quoted+ is a boolean value
+plain+ is a boolean value
+tag+ is an associated tag or nil
+anchor+ is an associated anchor or nil
+value+ is the string value of the scalar

+anchor+, a +tag+, be implicitly +plain+ or implicitly +quoted+
Called when a scalar +value+ is found. The scalar may have an
##
def scalar value, anchor, tag, plain, quoted, style
end