Class: RubyRTL::MemoryType

Inherits:
Type
  • 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(size, type) ⇒ MemoryType

Returns a new instance of MemoryType.



348
349
350
# File 'lib/ruby_rtl/ast.rb', line 348

def initialize size,type
  @size,@type=size,type
end

Instance Attribute Details

#sizeObject

Returns the value of attribute size.



347
348
349
# File 'lib/ruby_rtl/ast.rb', line 347

def size
  @size
end

#typeObject

Returns the value of attribute type.



347
348
349
# File 'lib/ruby_rtl/ast.rb', line 347

def type
  @type
end