Class: RubyRTL::Root

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

#initializeRoot

Returns a new instance of Root.



27
28
29
# File 'lib/ruby_rtl/ast.rb', line 27

def initialize
  @ios,@decls,@body=[],[],Body.new
end

Instance Attribute Details

#bodyObject

attr_accessor :ios,:decls,:body



26
27
28
# File 'lib/ruby_rtl/ast.rb', line 26

def body
  @body
end

#declsObject

attr_accessor :ios,:decls,:body



26
27
28
# File 'lib/ruby_rtl/ast.rb', line 26

def decls
  @decls
end