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

Version Path
rb2exe-0.1.43 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/ruby_events.rb
rb2exe-0.1.40 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/ruby_events.rb
rb2exe-0.1.39 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/ruby_events.rb
rb2exe-0.1.38 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/ruby_events.rb
rb2exe-0.1.29 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/ruby_events.rb
rb2exe-0.1.14 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/ruby_events.rb
rb2exe-0.1.12 bin/traveling-ruby-2.2.2/lib/ruby/2.2.0/psych/json/ruby_events.rb
psych-2.0.17-java lib/psych/json/ruby_events.rb
psych-2.0.17 lib/psych/json/ruby_events.rb
psych-2.0.16-java lib/psych/json/ruby_events.rb
psych-2.0.16 lib/psych/json/ruby_events.rb
psych-2.0.15-java lib/psych/json/ruby_events.rb
psych-2.0.15 lib/psych/json/ruby_events.rb
psych-2.0.14-java lib/psych/json/ruby_events.rb
psych-2.0.14 lib/psych/json/ruby_events.rb
psych-shopifork-2.0.13 lib/psych/json/ruby_events.rb
psych-2.0.14.pre1-java lib/psych/json/ruby_events.rb
psych-2.0.13 lib/psych/json/ruby_events.rb
psych-2.0.12 lib/psych/json/ruby_events.rb
psych-2.0.11 lib/psych/json/ruby_events.rb