C
Carl Jenkins
I was reading the pick axe book (for 1.9 version of ruby) and on page
155 it talks about exception handling.
More specifically, it says that beginners usually make the mistake of
putting File.open in the begin end block.
Now, I am a ruby newbie but, how do you handle exceptions for File.open
if it is not in the begin block? Do I put File.open in its own begin
block?
155 it talks about exception handling.
More specifically, it says that beginners usually make the mistake of
putting File.open in the begin end block.
Now, I am a ruby newbie but, how do you handle exceptions for File.open
if it is not in the begin block? Do I put File.open in its own begin
block?