Class: Gem::SafeMarshal::Visitors::Visitor

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygems/safe_marshal/visitors/visitor.rb

Direct Known Subclasses

StreamPrinter, ToRuby

Instance Method Summary collapse

Instance Method Details

#visit(target) ⇒ Object



5
6
7
# File 'lib/rubygems/safe_marshal/visitors/visitor.rb', line 5

def visit(target)
  send DISPATCH.fetch(target.class), target
end