PHP 8.2.31
Preview: ruby_events.rb Size: 458 B
//proc/thread-self/root/opt/alt/ruby19/lib64/ruby/1.9.1/psych/json/ruby_events.rb

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

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
458 B lrw-r--r-- 2011-02-21 01:06:34
Edit Download
332 B lrw-r--r-- 2011-05-15 11:55:52
Edit Download
327 B lrw-r--r-- 2011-05-15 11:55:52
Edit Download
749 B lrw-r--r-- 2012-08-07 20:50:05
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).