PHP 8.2.31
Preview: json_tree.rb Size: 436 B
//proc/thread-self/root/opt/alt/ruby19/lib64/ruby/1.9.1/psych/visitors/json_tree.rb

require 'psych/json/ruby_events'

module Psych
  module Visitors
    class JSONTree < YAMLTree
      include Psych::JSON::RubyEvents

      def initialize options = {}, emitter = Psych::JSON::TreeBuilder.new
        super
      end

      def accept target
        if target.respond_to?(:encode_with)
          dump_coder target
        else
          send(@dispatch_cache[target.class], target)
        end
      end
    end
  end
end

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
596 B lrw-r--r-- 2011-01-22 14:42:15
Edit Download
1.42 KB lrw-r--r-- 2012-08-07 20:50:05
Edit Download
436 B lrw-r--r-- 2011-02-21 18:09:38
Edit Download
8.99 KB lrw-r--r-- 2012-08-07 20:50:05
Edit Download
329 B lrw-r--r-- 2010-11-02 21:25:27
Edit Download
12.77 KB lrw-r--r-- 2012-08-07 20:50:05
Edit Download

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