Class: RMasm::SymbolModifier

Inherits:
Modifier show all
Defined in:
lib/rmasm/modifier.rb

Instance Attribute Summary collapse

Attributes inherited from Modifier

#type, #value

Instance Method Summary collapse

Methods inherited from Modifier

#<<, #[]

Constructor Details

#initialize(symbol, size) ⇒ SymbolModifier

Returns a new instance of SymbolModifier.



42
43
44
45
46
# File 'lib/rmasm/modifier.rb', line 42

def initialize(symbol,size)
 super :symbol
 @symbol = symbol
 @size = size     
end

Instance Attribute Details

#sizeObject (readonly)

Returns the value of attribute size.



41
42
43
# File 'lib/rmasm/modifier.rb', line 41

def size
  @size
end

#symbolObject (readonly)

Returns the value of attribute symbol.



41
42
43
# File 'lib/rmasm/modifier.rb', line 41

def symbol
  @symbol
end