This class represents a YAML Scalar.
This node type is a terminal node and should not have any children.
      Constants
    
  Any style scalar, the emitter chooses
Double quoted style
Folded style
Literal style
Plain scalar style
Single quoted style
      Attributes
    
  
          
            Read & Write
          
        
      The anchor value (if there is one)
          
            Read & Write
          
        
      Is this a plain scalar?
          
            Read & Write
          
        
      Is this scalar quoted?
          
            Read & Write
          
        
      The style of this scalar
          
            Read & Write
          
        
      The tag value (if there is one)
          
            Read & Write
          
        
      The scalar value
      Class Methods
    
  
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.3.0/ext/psych/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
          
        
      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
      Instance Methods
    
  
          
            #
          
          
        
      
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            # File tmp/rubies/ruby-3.3.0/ext/psych/lib/psych/nodes/scalar.rb, line 67
def scalar?; true; end
          
        
      No documentation available