Class: RubyRTL::CompDecl

Inherits:
Ast
  • Object
show all
Defined in:
lib/ruby_rtl/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(name, comp) ⇒ CompDecl

Returns a new instance of CompDecl.



71
72
73
# File 'lib/ruby_rtl/ast.rb', line 71

def initialize name,comp
  @name,@comp=name,comp
end

Instance Attribute Details

#compObject

Returns the value of attribute comp.



70
71
72
# File 'lib/ruby_rtl/ast.rb', line 70

def comp
  @comp
end

#nameObject

Returns the value of attribute name.



70
71
72
# File 'lib/ruby_rtl/ast.rb', line 70

def name
  @name
end