Sha256: 9b2f7cf5982e1cf62159e6245ad3eee83b67245a84d0f1cbb701f48da3930789
Contents?: true
Size: 488 Bytes
Versions: 6277
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true module Psych module JSON module RubyEvents # :nodoc: def visit_Time o formatted = format_time o @emitter.scalar formatted, nil, nil, false, true, Nodes::Scalar::DOUBLE_QUOTED end def visit_DateTime o visit_Time o.to_time end def visit_String o @emitter.scalar o.to_s, nil, nil, false, true, Nodes::Scalar::DOUBLE_QUOTED end alias :visit_Symbol :visit_String end end end
Version data entries
6,277 entries across 6,274 versions & 27 rubygems