Class: Psych::Stream::Emitter
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Psych::Emitter ,
::Psych::Handler
|
|
Instance Chain:
self,
::Psych::Emitter ,
::Psych::Handler
|
|
Inherits: |
Psych::Emitter
|
Defined in: | ext/psych/lib/psych/stream.rb |
Constant Summary
::Psych::Handler
- Inherited
Class Method Summary
::Psych::Emitter
- Inherited
.new | Create a new |
Instance Attribute Summary
- #streaming? ⇒ Boolean readonly
::Psych::Emitter
- Inherited
#canonical | Get the output style, canonical or not. |
#canonical= |
|
#indentation | Get the indentation level. |
#indentation= |
|
#line_width | Get the preferred line width. |
#line_width= |
|
::Psych::Handler
- Inherited
#streaming? | Is this handler a streaming handler? |
Instance Method Summary
::Psych::Emitter
- Inherited
#alias | Emit an alias with |
#end_document | End a document emission with an |
#end_mapping | Emit the end of a mapping. |
#end_sequence | End sequence emission. |
#end_stream | End a stream emission. |
#scalar | Emit a scalar with |
#start_document | Start a document emission with YAML |
#start_mapping | Start emitting a YAML map with |
#start_sequence | Start emitting a sequence with |
#start_stream | Start a stream emission with |
::Psych::Handler
- Inherited
#alias | Called when an alias is found to |
#empty | Called when an empty event happens. |
#end_document | Called with the document ends. |
#end_mapping | Called when a map ends. |
#end_sequence | Called when a sequence ends. |
#end_stream | Called when the YAML stream ends. |
#event_location | Called before each event with line/column information. |
#scalar | Called when a scalar |
#start_document | Called when the document starts with the declared |
#start_mapping | Called when a map starts. |
#start_sequence | Called when a sequence is started. |
#start_stream | Called with |
Constructor Details
This class inherits a constructor from Psych::Emitter
Instance Attribute Details
#streaming? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'ext/psych/lib/psych/stream.rb', line 30
def streaming? true end
Instance Method Details
#end_document(implicit_end = !streaming?)
[ GitHub ]# File 'ext/psych/lib/psych/stream.rb', line 26
def end_document implicit_end = !streaming? super end