Class

If an object defines encode_with, then an instance of Psych::Coder will be passed to the method when the object is being serialized. The Coder automatically assumes a Psych::Nodes::Mapping is being emitted. Other objects like Sequence and Scalar may be emitted if seq= or scalar= are called, respectively.

Attributes

tag

Read & Write
No documentation available
Read & Write
No documentation available
Read & Write
No documentation available
Read & Write
No documentation available
Read
No documentation available

seq

Read
No documentation available
Class Methods
No documentation available
Instance Methods
No documentation available
No documentation available
An alias for []=

Emit a map. The coder will be yielded to the block.

Emit a map with value

Emit a sequence with map and tag

Emit an arbitrary object obj and tag

Emit a scalar with value and tag

Emit a sequence with list and tag

No documentation available

Emit a scalar with value

Emit a sequence of list