fix more of the changed names
add a few self.
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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}"
|
||||
|
Reference in New Issue
Block a user