123456789_123456789_123456789_123456789_123456789_

Module: Psych::JSON::YAMLEvents

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: ext/psych/lib/psych/json/yaml_events.rb

Instance Method Summary

Instance Method Details

#end_document(implicit_end = !streaming?)

[ GitHub ]

  
# File 'ext/psych/lib/psych/json/yaml_events.rb', line 9

def end_document implicit_end = !streaming?
  super(implicit_end)
end

#scalar(value, anchor, tag, plain, quoted, style)

[ GitHub ]

  
# File 'ext/psych/lib/psych/json/yaml_events.rb', line 21

def scalar value, anchor, tag, plain, quoted, style
  if "tag:yaml.org,2002:null" == tag
    super('null', nil, nil, true, false, Nodes::Scalar::PLAIN)
  else
    super
  end
end

#start_document(version, tag_directives, implicit)

[ GitHub ]

  
# File 'ext/psych/lib/psych/json/yaml_events.rb', line 5

def start_document version, tag_directives, implicit
  super(version, tag_directives, !streaming?)
end

#start_mapping(anchor, tag, implicit, style)

[ GitHub ]

  
# File 'ext/psych/lib/psych/json/yaml_events.rb', line 13

def start_mapping anchor, tag, implicit, style
  super(anchor, nil, true, Nodes::Mapping::FLOW)
end

#start_sequence(anchor, tag, implicit, style)

[ GitHub ]

  
# File 'ext/psych/lib/psych/json/yaml_events.rb', line 17

def start_sequence anchor, tag, implicit, style
  super(anchor, nil, true, Nodes::Sequence::FLOW)
end