5件ヒット
[1-5件を表示]
(0.055秒)
ライブラリ
- psych (5)
キーワード
-
LIBYAML
_ VERSION (1) - VERSION (1)
- dump (1)
-
dump
_ stream (1) -
to
_ json (1)
検索結果
先頭5件
-
Psych
. dump _ stream(*objects) -> String (18907.0) -
オブジェクト列を YAML ドキュメント列に変換します。
...オブジェクト列を YAML ドキュメント列に変換します。
@param objects 変換対象のオブジェクト列
//emlist[例][ruby]{
Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n"
//}... -
Psych
. dump(o , options = {}) -> String (625.0) -
Ruby のオブジェクト o を YAML ドキュメントに変換します。
...[例][ruby]{
# Dump an array, get back a YAML string
Psych.dump(['a', 'b']) # => "---\n- a\n- b\n"
# Dump an array to an IO object
Psych.dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
# Dump an array with indentation set
Psych.dump(['a', ['b']], :indentation => 3) # => "---\n-......a\n- - b\n"
# Dump an array to an IO with indentation set
Psych.dump(['a', ['b']], StringIO.new, :indentation => 3)
//}... -
Psych
. to _ json(o) -> String (607.0) -
Ruby のオブジェクト o を JSON の文字列に変換します。
Ruby のオブジェクト o を JSON の文字列に変換します。
@param o 変換対象となるオブジェクト -
Psych
:: LIBYAML _ VERSION -> String (607.0) -
libyaml のバージョン。
libyaml のバージョン。 -
Psych
:: VERSION -> String (607.0) -
Psych のバージョン。
...Psych のバージョン。...