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

Version Path
cybrid_api_id_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.122.67 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.122.67 vendor/bundle/ruby/3.3.0/gems/psych-5.2.0/lib/psych/json/ruby_events.rb