Skip to content

Instantly share code, notes, and snippets.

@dx7
Created September 7, 2012 21:00
Show Gist options
  • Select an option

  • Save dx7/3669571 to your computer and use it in GitHub Desktop.

Select an option

Save dx7/3669571 to your computer and use it in GitHub Desktop.
Ruby with PHP Feelings
# 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