Skip to content

Instantly share code, notes, and snippets.



Created Dec 14, 2012
What would you like to do?
Different behaviour of default initializer in Ruby 1.9.2 and Ruby 1.9.3
➜ ~ rvm use 1.9.2 && ruby -e 'class A; end; puts'
Using /Users/user/.rvm/gems/ruby-1.9.2-p320
➜ ~ rvm use 1.9.3 && ruby -e 'class A; end; puts'
Using /Users/user/.rvm/gems/ruby-1.9.3-p327
-e:1:in `initialize': wrong number of arguments(1 for 0) (ArgumentError)
from -e:1:in `new'
from -e:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.