Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created October 18, 2011 18:12
Show Gist options
  • Select an option

  • Save practicingruby/1296196 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/1296196 to your computer and use it in GitHub Desktop.
>> class A; end; A.new(:foo, :bar)
=> #<A:0x00000100b6f9a8>
>> RUBY_VERSION
=> "1.9.2"
>> class A; end; A.new(:foo, :bar)
ArgumentError: wrong number of arguments(2 for 0)
from (irb):1:in `initialize'
from (irb):1:in `new'
from (irb):1
from /Users/seacreature/.rvm/rubies/ruby-1.9.3-rc1/bin/irb:16:in `<main>'
>> RUBY_VERSION
=> "1.9.3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment