Last active
August 29, 2015 14:08
-
-
Save libitte/1380a3a8c9ba3c1f527b to your computer and use it in GitHub Desktop.
`{ ... }` と `do ... end` の違いと使い分けるべきシーン ref: http://qiita.com/libitte@github/items/3eb22d2ee371185f775a
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
| some_method other_method { ... } |
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
| some_method(other_method{ ... }) |
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
| some_method other_method do ... end |
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
| some_method(other_method) do ... end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment