Method: Psych::Nodes::Scalar#initialize
- Defined in:
- lib/psych/nodes/scalar.rb
#initialize(value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY) ⇒ Scalar
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 idicating the string style
See Also
See also Psych::Handler#scalar
58 59 60 61 62 63 64 65 |
# File 'lib/psych/nodes/scalar.rb', line 58 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 |