Sha256: 09589629a94cdb1122fb67159beae25fb5adc3c31d4e3ca3b17d48c4ab627792
Contents?: true
Size: 458 Bytes
Versions: 114
Compression:
Stored size: 458 Bytes
Contents
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
114 entries across 86 versions & 6 rubygems