T
tim
Hi
I have examined the test object from the test unit stuff and i cannot
work out how the base class executes the main test object... i want to
efectively do the same thing. Can anybody give me some tips on how to do
this. Effectively i want to:
class SpecificArchitecture << BaseArchitecture
def main(args)
....
end
end
And when the file is run it just figures out how to make the object and
call into main. I currently have a number of derived classes that all
have something like:
begin
xx = SpecificArchitecture.new()
xx.main(ARGV)
end
at the end. Which i would like to remove.
thanks
Tim
I have examined the test object from the test unit stuff and i cannot
work out how the base class executes the main test object... i want to
efectively do the same thing. Can anybody give me some tips on how to do
this. Effectively i want to:
class SpecificArchitecture << BaseArchitecture
def main(args)
....
end
end
And when the file is run it just figures out how to make the object and
call into main. I currently have a number of derived classes that all
have something like:
begin
xx = SpecificArchitecture.new()
xx.main(ARGV)
end
at the end. Which i would like to remove.
thanks
Tim