るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

クラス

モジュール

キーワード

検索結果

Psych::SyntaxError#offset -> Integer (6202.0)

エラーが生じた位置の offset をバイト数で 返します。

...エラーが生じた位置の offset をバイト数で
返します。

offset とは、
Psych
::SyntaxError#line, Psych::SyntaxError#column
で指示される位置からの相対位置です。
この位置から 0 バイトの位置でエラーが発生することが多いため、
このメ...

Psych.dump(o, io, options = {}) -> () (144.0)

Ruby のオブジェクト o を YAML ドキュメントに変換します。

...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 (144.0)

Ruby のオブジェクト o を YAML ドキュメントに変換します。

...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)
//}...