Ruby 1.8.7 Reference Manual > All Libraries > library yaml/rubytypes > class TrueClass > to_yaml
to_yaml(opts = {})
自身を YAML ドキュメントに変換します。
print true.to_yaml # => --- true