class Psych::Coder
クラスの継承リスト: Psych::Coder < Object < Kernel < BasicObject
要約
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.
特異メソッド
new(tag) -> Psych::Coder-
[TODO]
インスタンスメソッド
self[k]-
[TODO]
self[k] = v-
[TODO]
epresent_scalar(tag, value)-
[TODO]
Emit a scalar with +value+ and +tag+
implicit-
[TODO]
implicit=(val)-
[TODO]
map(tag = self.tag, style = self.style)map(tag = self.tag, style = self.style) { ... }-
[TODO]
Emit a map. The coder will be yielded to the block.
map=(map)-
[TODO]
Emit a map with +value+
object-
[TODO]
object=(val)-
[TODO]
represent_map(tag, map)-
[TODO]
Emit a sequence with +map+ and +tag+
represent_object(tag, obj)-
[TODO]
Emit an arbitrary object +obj+ and +tag+
represent_seq(tag, list)-
[TODO]
Emit a sequence with +list+ and +tag+
scalar(*args)-
[TODO]
scalar=(value)-
[TODO]
Emit a scalar with +value+
seq-
[TODO]
seq=(list)-
[TODO]
Emit a sequence of +list+
style-
[TODO]
style=(val)-
[TODO]
tag-
[TODO]
tag=(val)-
[TODO]
type-
[TODO]