class Psych::Emitter
クラスの継承リスト: Psych::Emitter < Psych::Handler < Object < Kernel < BasicObject
要約
特異メソッド
new(io) -> Psych::Emitter
-
[TODO]
自身を初期化します。
インスタンスメソッド
alias(anchor) -> Psych::Emitter
-
[TODO]
Emit an alias with +anchor+.
自身を返します。
[SEE_ALSO] Psych::Handler#alias
canonical -> bool
-
[TODO]
Get the output style, canonical or not.
canonical=(bool)
-
[TODO]
Set the output style to canonical, or not.
end_document(implicit) -> Psych::Emitter
-
[TODO]
End a document emission with an +implicit+ ending.
自身を返します。
[SEE_ALSO] Psych::Handler#end_document
end_mapping -> Psych::Emitter
-
[TODO]
Emit the end of a mapping.
自身を返します。
See Psych::Handler#end_mapping
end_sequence -> Psych::Emitter
-
[TODO]
End sequence emission.
自身を返します。
[SEE_ALSO] Psych::Handler#end_sequence
end_stream -> Psych::Emitter
-
[TODO]
End a stream emission
自身を返します。
[SEE_ALSO] Psych::Handler#end_stream
indentation -> Integer
-
[TODO]
Get the indentation level.
indentation=(level)
-
[TODO]
Set the indentation level to +level+. The level must be less than 10 and greater than 1.
line_width -> Integer
-
[TODO]
Get the preferred line width.
line_width=(width)
-
[TODO]
Set the preferred line with to +width+.
scalar(value, anchor, tag, plain, quoted, style) -> Psych::Emitter
-
[TODO]
Emit a scalar with +value+, +anchor+, +tag+, and a +plain+ or +quoted+ string type with +style+.
自身を返します。
[SEE_ALSO] Psych::Handler#scalar
start_document(version, tags, implicit) -> Psych::Emitter
-
[TODO]
Start a document emission with YAML +version+, +tags+, and an +implicit+ start.
自身を返します。
- [EXCEPTION] RuntimeError:
- tag tuple の長さが 2 以下の場合に発生します。
[SEE_ALSO] Psych::Handler#start_document
start_mapping(anchor, tag, implicit, style) -> Psych::Emitter
-
[TODO]
Start emitting a YAML map with +anchor+, +tag+, an +implicit+ start and end, and +style+.
自身を返します。
[SEE_ALSO] Psych::Handler#start_mapping
start_sequence(anchor, tag, implicit, style) -> Psych::Emitter
-
[TODO]
Start emitting a sequence with +anchor+, a +tag+, +implicit+ sequence start and end, along with +style+.
自身を返します。
[SEE_ALSO] Psych::Handler#start_sequence
start_stream(encoding) -> Psych::Emitter
-
[TODO]
Start a stream emission with +encoding+
自身を返します。
[SEE_ALSO] Psych::Handler#start_stream