Created
December 13, 2012 05:11
-
-
Save fukajun/4274201 to your computer and use it in GitHub Desktop.
埋め込んだ変数にrescueできるの知らなかった
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts "In a non-matching group, help is #{help rescue 'not available'}" # not availableが表示される | |
| puts "#{raise "hoge" rescue "aaa" }" # aaaが表示される |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment