Sha256: a50afa15cfdb2525046ba45435b6564112bc86cdad6175c620310a2abb2fb584
Contents?: true
Size: 329 Bytes
Versions: 114
Compression:
Stored size: 329 Bytes
Contents
module Psych module Visitors class Visitor def accept target visit target end private DISPATCH = Hash.new do |hash, klass| hash[klass] = "visit_#{klass.name.gsub('::', '_')}" end def visit target send DISPATCH[target.class], target end end end end
Version data entries
114 entries across 86 versions & 6 rubygems