Class: RubyRTL::TypeDecl

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, definition) ⇒ TypeDecl

Returns a new instance of TypeDecl.



57
58
59
# File 'lib/ruby_rtl/ast.rb', line 57

def initialize name,definition
  @name,@definition=name,definition
end

Instance Attribute Details

#definitionObject

Returns the value of attribute definition.



56
57
58
# File 'lib/ruby_rtl/ast.rb', line 56

def definition
  @definition
end

#nameObject

Returns the value of attribute name.



56
57
58
# File 'lib/ruby_rtl/ast.rb', line 56

def name
  @name
end