Method: Eavi::Visitor::DSL#def_visit

Defined in:
lib/eavi/visitor.rb

#def_visit(*types, &block) ⇒ Object

DSL method to add visit methods on types types.

Parameters:

  • *types (Array<Class>)

    Types attached to the new visit method

  • block (Proc)

    The content of the visit method



43
44
45
# File 'lib/eavi/visitor.rb', line 43

def def_visit(*types, &block)
  add_visit_method(*types, &block)
end