D
David E.
So I have a class with a lot of methods, and each method has a begin/end
block
class HiThere
def one(stext)
begin
puts("Hi");
rescue Exception => msg
self.exceptionHandle(msg)
end
end
def two(stext)
begin
puts("Hi");
rescue Exception => msg
self.exceptionHandle(msg)
end
end
#etc etc
#...
end
... Is there a way to put one begin/end block encompassing the whole
class/object? Sort of like an instance-wide begin/end block?
hehe<--- but serious...
block
class HiThere
def one(stext)
begin
puts("Hi");
rescue Exception => msg
self.exceptionHandle(msg)
end
end
def two(stext)
begin
puts("Hi");
rescue Exception => msg
self.exceptionHandle(msg)
end
end
#etc etc
#...
end
... Is there a way to put one begin/end block encompassing the whole
class/object? Sort of like an instance-wide begin/end block?
hehe<--- but serious...