Created
January 24, 2014 16:03
-
-
Save chezou/8600244 to your computer and use it in GitHub Desktop.
This file contains 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
[121] pry(main)> case str | |
[121] pry(main)* when ->(t){ t.size == 4 } | |
[121] pry(main)* puts 'size eq 4' | |
[121] pry(main)* else | |
[121] pry(main)* puts 'not eq 4' | |
[121] pry(main)* end | |
size eq 4 | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment