slightly better enter

This commit is contained in:
Torsten Ruger 2014-08-26 16:16:59 +03:00
parent 888acdca0c
commit 1379b4ea4e

View File

@ -22,7 +22,7 @@ module Register
slot = LinkSlot.new at slot = LinkSlot.new at
@objects[object.object_id] = slot @objects[object.object_id] = slot
end end
return if object.is_a? Instruction # return if object.is_a? Instruction
clazz = object.class.name.split("::").last clazz = object.class.name.split("::").last
send("link_#{clazz}".to_sym , object , at) send("link_#{clazz}".to_sym , object , at)
end end