method
visit_DateTime
v1_9_3_392 -
Show latest stable
- Class:
Psych::Visitors::YAMLTree
visit_DateTime(o)public
No documentation available.
# File ext/psych/lib/psych/visitors/yaml_tree.rb, line 166
def visit_DateTime o
formatted = format_time o.to_time
tag = '!ruby/object:DateTime'
register o, @emitter.scalar(formatted, nil, tag, false, false, Nodes::Scalar::ANY)
end