refactor builtin object, some machine too

This commit is contained in:
Torsten Ruger
2016-12-15 19:20:54 +02:00
parent 94c423c2b3
commit 5ea6bfed27
4 changed files with 52 additions and 22 deletions

View File

@ -138,6 +138,9 @@ module Typed
unless instruction.is_a?(Register::Instruction)
raise instruction.to_s
end
if( instruction.class.name.split("::").first == "Arm")
raise instruction.to_s
end
@current.insert(instruction) #insert after current
@current = instruction
self