class Psych::Visitors::JSONTree

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method
# File ext/psych/lib/psych/visitors/json_tree.rb, line 8
def initialize options = {}, emitter = Psych::JSON::TreeBuilder.new
  super
end

Public Instance Methods

accept(target) click to toggle source
# File ext/psych/lib/psych/visitors/json_tree.rb, line 12
def accept target
  if target.respond_to?(:encode_with)
    dump_coder target
  else
    send(@dispatch_cache[target.class], target)
  end
end