W
Wejn
Hi,
I can't figure out how to:
class Foo
class Bar << RuntimeError; end
def something
begin
# ...
rescue Bar # i want Bar, not Foo::Bar
raise Bar # i want Foo::Bar, correct.
end
end
end
Does anyone have idea how to do that?
(IIRC, In c++ this is done via "::" operator)
Best regards,
Michal
I can't figure out how to:
class Foo
class Bar << RuntimeError; end
def something
begin
# ...
rescue Bar # i want Bar, not Foo::Bar
raise Bar # i want Foo::Bar, correct.
end
end
end
Does anyone have idea how to do that?
(IIRC, In c++ this is done via "::" operator)
Best regards,
Michal