Module: Psych::JSON::YAMLEvents
- Included in:
- Stream::Emitter, TreeBuilder
- Defined in:
- lib/psych/json/yaml_events.rb
Overview
:nodoc:
Instance Method Summary collapse
- #end_document(implicit_end = !streaming?) ⇒ Object
- #scalar(value, anchor, tag, plain, quoted, style) ⇒ Object
- #start_document(version, tag_directives, implicit) ⇒ Object
- #start_mapping(anchor, tag, implicit, style) ⇒ Object
- #start_sequence(anchor, tag, implicit, style) ⇒ Object
Instance Method Details
#end_document(implicit_end = !streaming?) ⇒ Object
8 9 10 |
# File 'lib/psych/json/yaml_events.rb', line 8 def end_document implicit_end = !streaming? super(implicit_end) end |
#scalar(value, anchor, tag, plain, quoted, style) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/psych/json/yaml_events.rb', line 20 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) ⇒ Object
4 5 6 |
# File 'lib/psych/json/yaml_events.rb', line 4 def start_document version, tag_directives, implicit super(version, tag_directives, !streaming?) end |