class Psych::Nodes::Scalar
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/psych/nodes/scalar.rbs class Psych::Nodes::Scalar < Psych::Nodes::Psych::Nodes::Node def initialize: (String value, ?nil anchor, ?nil tag, ?true plain, ?false quoted, ?Integer style) -> void end
This node type is a terminal node and should not have any children.
This class represents a YAML Scalar.
##
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (String value, ?nil anchor, ?nil tag, ?true plain, ?false quoted, ?Integer style) -> void
This signature was generated using 1 sample from 1 application.
== See Also
+style+ is an integer indicating 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
Create a new Psych::Nodes::Scalar object.
##
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
def scalar?; true; end
def scalar?; true; end