Module: Reggae::Visitable
- Included in:
- Bit, Bitfield, Bus, Comment, Connect, Input, Instance, MemoryMap, Output, Parameters, Range, RegSig, Register, Subzone, Zone
- Defined in:
- lib/reggae/ast.rb
Instance Method Summary collapse
Instance Method Details
#accept(visitor, arg = nil) ⇒ Object
4 5 6 7 |
# File 'lib/reggae/ast.rb', line 4 def accept(visitor, arg=nil) name = self.class.name.split(/::/)[1] visitor.send("visit#{name}".to_sym, self ,arg) # Metaprograming ! end |