module Eavi::Visitor::DSL

DSL methods

Public Instance Methods

def_visit(*types, &block) click to toggle source

DSL method to add visit methods on types types.

@param [Array<Class>] *types Types attached to the new visit method @param [Proc] block The content of the visit method

# File lib/eavi/visitor.rb, line 43
def def_visit(*types, &block)
  add_visit_method(*types, &block)
end
undef_visit(*types) click to toggle source

DSL method to remove visit methods on types types.

@param [Array<Class>] *types Types attached to the removed visit method

# File lib/eavi/visitor.rb, line 50
def undef_visit(*types)
  remove_visit_method(*types)
end