Sha256: 9b2f7cf5982e1cf62159e6245ad3eee83b67245a84d0f1cbb701f48da3930789

Contents?: true

Size: 488 Bytes

Versions: 6729

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,729 entries across 6,724 versions & 31 rubygems

Version Path
cybrid_api_bank_ruby-0.123.234 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.123.234 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.123.234 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.123.233 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.123.233 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.123.233 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
ory-client-1.16.7 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.123.231 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.123.231 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.123.231 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.123.230 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.123.230 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.123.230 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.123.229 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.123.229 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.123.229 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.123.228 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_id_ruby-0.123.228 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_organization_ruby-0.123.228 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb
cybrid_api_bank_ruby-0.123.227 vendor/bundle/ruby/3.3.0/gems/psych-5.2.3/lib/psych/json/ruby_events.rb