class
Psych::Coder
v1_9_3_392 -
Show latest stable
- Superclass: Object
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
| [RW] | implicit |
| [RW] | object |
| [R] | seq |
| [RW] | style |
| [RW] | tag |
| [R] | type |
Files
- ext/psych/lib/psych/coder.rb