rename blocks do_add to be the same as sunctions add_code to blur the difference

This commit is contained in:
Torsten Ruger
2014-06-24 12:36:32 +03:00
parent 43a2649635
commit 17904d8e02
5 changed files with 13 additions and 11 deletions

View File

@ -1,9 +1,11 @@
module Vm
class Reference < Word
# needs to be here as Word's constructor is private (to make it abstract)
def initialize reg
super
def initialize reg , clazz = nil
super(reg)
@clazz = clazz
end
attr_accessor :clazz
end
end