method
to_yaml
v2.1.0 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
to_yaml(options = {})public
No documentation available.
# File activesupport/lib/active_support/time_with_zone.rb, line 114
def to_yaml(options = {})
if options.kind_of?(YAML::Emitter)
utc.to_yaml(options)
else
time.to_yaml(options).gsub('Z', formatted_offset(true, 'Z'))
end
end