instance method Hash#to_yaml
to_yaml(opts = {}) -> String
[added by syck/rubytypes]-
自身を YAML ドキュメントに変換します。
- [PARAM] opts:
- YAML ドキュメント出力の際のオプションを指定します。 オプションの詳細は Syck::Emitter#reset を参照し てください。
print({"foo" => "bar"}.to_yaml) # => --- foo: bar
class Hash