Class: Psych::JSON::Stream::Emitter
- Inherits:
-
Stream::Emitter
- Object
- Handler
- Emitter
- Stream::Emitter
- Psych::JSON::Stream::Emitter
- Defined in:
- lib/psych/json/stream.rb
Overview
:nodoc:
Instance Method Summary collapse
- #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
Methods inherited from Stream::Emitter
Methods inherited from Emitter
#alias, #canonical, #canonical=, #end_document, #end_mapping, #end_sequence, #end_stream, #indentation, #indentation=, #initialize, #start_stream
Methods inherited from Handler
#alias, #empty, #end_document, #end_mapping, #end_sequence, #end_stream, #start_stream, #streaming?
Constructor Details
This class inherits a constructor from Psych::Emitter
Instance Method Details
#scalar(value, anchor, tag, plain, quoted, style) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/psych/json/stream.rb', line 17 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
5 6 7 |
# File 'lib/psych/json/stream.rb', line 5 def start_document version, tag_directives, implicit super(version, tag_directives, !streaming?) end |