るりまサーチ (Ruby 3.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.027秒)
トップページ > ライブラリ:psych[x] > クエリ:yaml[x] > クエリ:yaml[x] > バージョン:3.0[x] > クエリ:Set[x]

別のキーワード

  1. yaml/dbm select
  2. psych to_yaml
  3. yaml/store new
  4. yaml yaml
  5. yaml/dbm dbm

種類

モジュール

検索結果

Psych::Set (54151.0)

YAML の unordered set を表すクラスです。

YAML の unordered set を表すクラスです。

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