class Psych::Visitors::Visitor

Constants

DISPATCH

Public Class Methods

dispatch_cache ()

@api private

# File ext/psych/lib/psych/visitors/visitor.rb, line 12
def self.dispatch_cache
  Hash.new do |hash, klass|
    hash[klass] = :"visit_#{klass.name.gsub('::', '_')}"
  end.compare_by_identity
end

Public Instance Methods

accept (target)
# File ext/psych/lib/psych/visitors/visitor.rb, line 5
def accept target
  visit target
end