Module: Eavi::Visitor::ModuleDSL
- Defined in:
- lib/eavi/visitor.rb
Overview
Domain-Specific Language for the module/class
Instance Method Summary collapse
-
#def_visit(*types, &block) ⇒ Object
DSL method to add visit methods on types
types. -
#undef_visit(*types) ⇒ Object
DSL method to remove visit methods on types
types.
Instance Method Details
#def_visit(*types, &block) ⇒ Object
DSL method to add visit methods on types types.
35 36 37 |
# File 'lib/eavi/visitor.rb', line 35 def def_visit(*types, &block) add_visit_method(*types, &block) end |
#undef_visit(*types) ⇒ Object
DSL method to remove visit methods on types types.
40 41 42 |
# File 'lib/eavi/visitor.rb', line 40 def undef_visit(*types) remove_visit_method(*types) end |