asserts to debug

This commit is contained in:
Torsten Ruger
2015-06-29 20:56:11 +03:00
parent 218fafca05
commit a24e96efbc
2 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,9 @@ module Register
@register = register
@array = array
@index = index
raise "not integer #{index}" unless index.is_a? Numeric
raise "Not register #{register}" unless Register::RegisterReference.look_like_reg(register)
raise "Not register #{array}" unless Register::RegisterReference.look_like_reg(array)
end
attr_accessor :register , :array , :index
end