Created
September 7, 2012 21:00
-
-
Save dx7/3669571 to your computer and use it in GitHub Desktop.
Ruby with PHP Feelings
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
| # Ruby Ree 1.8.7 | |
| $ irb | |
| ree-1.8.7 irb> 80 * "#" | |
| TypeError: String can't be coerced into Fixnum | |
| from (irb):1:in `*' | |
| from (irb):1 | |
| ree-1.8.7 irb> "#" * 80 | |
| => "################################################################################" | |
| # Ruby 1.9.3 | |
| $ irb | |
| ruby-1.9.3 irb> "#" * 80 | |
| => "################################################################################" | |
| ruby-1.9.3 irb> 80 * "#" | |
| TypeError: String can't be coerced into Fixnum | |
| from (irb):2:in `*' | |
| from (irb):2 | |
| from /Users/rafael.almeida/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment