Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> begin
- ?> 1/0
- >> rescue ZeroDivisionError
- >> puts "you divided by zero"
- >> end
- you divided by zero
- => nil
- >> begin
- ?> 1/kittens
- >> rescue ZeroDivisionError
- >> puts "you divided by zero"
- >> end
- NameError: undefined local variable or method `kittens' for main:Object
- from (irb):45
- from :0
- >> begin
- ?> 1/kittens
- >> rescue
- >> puts "we really have no idea what you did"
- >> end
- we really have no idea what you did
Add Comment
Please, Sign In to add comment