Skip to content
class method

Psych::Nodes::Scalar.new

new(value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY)

Create a new Psych::Nodes::Scalar object.

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

See Also

See also Psych::Handler#scalar

See also #scalar? also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0