Class: RMasm::DataDefault

Inherits:
Stacker show all
Defined in:
lib/rmasm/data_core.rb

Overview




Constant Summary collapse

VALUE =
0

Instance Attribute Summary

Attributes inherited from Stacker

#stack

Instance Method Summary collapse

Methods inherited from Stacker

#pop, #push, #value, #value=

Constructor Details

#initialize(*args) ⇒ DataDefault

Initialize alignment. The Align can be intialized with a stack : Align.new(1,2,4,8)



60
61
62
# File 'lib/rmasm/data_core.rb', line 60

def initialize(*args)
  super VALUE, *args
end

Instance Method Details

#to_sObject

Friendly to string



65
66
67
# File 'lib/rmasm/data_core.rb', line 65

def to_s()
  "Default Value, value = #{value}, stack = [#{stack * ' , '})]"
end