Type:
Class
Constants:
ANY : 0

Any style scalar, the emitter chooses

PLAIN : 1

Plain scalar style

SINGLE_QUOTED : 2

Single quoted style

DOUBLE_QUOTED : 3

Double quoted style

LITERAL : 4

Literal style

FOLDED : 5

Folded style

This class represents a YAML Scalar.

This node type is a terminal node and should not have any children.

new
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Nodes/Psych::Nodes::Scalar

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

2025-01-10 15:47:30