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