instance method
to_yaml
Ruby on Rails 3.1.12
Since v2.3.18 Last seen in v3.2.22.5Signature
to_yaml(*args)
No documentation comment.
Parameters
-
argsrest
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 160
def to_yaml(*args)
return super() if defined?(YAML::ENGINE) && !YAML::ENGINE.syck?
to_str.to_yaml(*args)
end
Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 160
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer