Class: RubyRTL::Ast
- Inherits:
-
Object
- Object
- RubyRTL::Ast
- Defined in:
- lib/ruby_rtl/ast.rb
Direct Known Subclasses
Body, Case, CircuitPart, Comment, CompDecl, Expr, Fsm, Literal, Next, Root, Sig, SigDecl, State, Statement, Type, TypeDecl, When
Instance Attribute Summary collapse
-
#comments ⇒ Object
Returns the value of attribute comments.
Instance Method Summary collapse
Instance Attribute Details
#comments ⇒ Object
Returns the value of attribute comments.
17 18 19 |
# File 'lib/ruby_rtl/ast.rb', line 17 def comments @comments end |
Instance Method Details
#accept(visitor, arg = nil) ⇒ Object
18 19 20 21 |
# File 'lib/ruby_rtl/ast.rb', line 18 def accept(visitor, arg=nil) name = self.class.name.split(/::/)[1] visitor.send("visit#{name}".to_sym, self ,arg) # Metaprograming ! end |