るりまサーチ

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

関連するキーワード

  1. syck/rubytypes
  2. yaml/rubytypes
  3. syck/rubytypes
  4. yaml/rubytypes
  5. object

ライブラリ

検索結果

String#to_yaml(opts = {}) (18108)

自身を YAML ドキュメントに変換します。

...を指定します。
オプションの詳細は YAML::Syck::Emitter#reset を参照し
てください。

print "foo".to_yaml # => --- foo...
...ョンを指定します。
オプションの詳細は Syck::Emitter#reset を参照し
てください。

print "foo".to_yaml # => --- foo...

String#is_binary_data? -> true | nil (13)

自身が ASCII 文字以外の文字列を含む場合に true を返します。

...文字列を含む場合に true を返します。

この値が true になる場合、self.to_yaml した結果、"!binary ..." というよ
うな文字列を返します。

print "テスト".to_yaml
# => --- !binary |
44OG44K544OI...