るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.017秒)
トップページ > バージョン:2.2.0[x] > クエリ:on[x] > モジュール:Psych[x]

別のキーワード

  1. optparse on
  2. optionparser on
  3. tracer on
  4. thread abort_on_exception
  5. socket udp_server_loop_on

種類

ライブラリ

キーワード

検索結果

Psych.libyaml_version -> [Integer, Integer, Integer] (18304.0)

libyaml のバージョンを返します。

...libyaml のバージョンを返します。

[major, minor patch-level] という 3 つの整数からなる配列を返します。

@see Psych::LIBYAML_VERSION...

Psych.to_json(o) -> String (18304.0)

Ruby のオブジェクト o を JSON の文字列に変換します。

Ruby のオブジェクト o を JSON の文字列に変換します。

@param o 変換対象となるオブジェクト

Psych::LIBYAML_VERSION -> String (18304.0)

libyaml のバージョン。

libyaml のバージョン。

Psych::VERSION -> String (18304.0)

Psych のバージョン。

...Psych のバージョン。...

Psych.dump(o, io, options = {}) -> () (304.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.dump(o, options = {}) -> String (304.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)
//}...