fix more of the changed names

add a few self.
This commit is contained in:
Torsten Ruger
2018-08-12 13:10:44 +03:00
parent 66e0d4ae26
commit 3d113b4d83
7 changed files with 20 additions and 20 deletions

View File

@ -77,7 +77,7 @@ module Parfait
# hand out a return address for use as constant the address is added
def get_address
addr = next_address
next_address = next_address.next_integer
self.next_address = next_address.next_integer
addr
end

View File

@ -127,16 +127,16 @@ module Parfait
def remove_method( method_name )
raise "No such method #{method_name} in #{self.name}" unless methods
if( methods.name == method_name)
self.methods = methods.next
self.methods = methods.next_callable
return true
end
method = methods
while(method && method.next)
if( method.next.name == method_name)
method.set_next( method.next.next )
while(method && method.next_callable)
if( method.next_callable.name == method_name)
method.set_next( method.next_callable.next_callable )
return true
else
method = method.next
method = method.next_callable
end
end
raise "No such method #{method_name} in #{self.name}"