Sophrinix / TryRuby

Try Ruby is a interactive shell that quickly and whimsically teaches the Ruby programming language. Originally _why's idea, it has been recreated from the ground up by Rubyists who have a passion for Ruby and for teaching their fellow (wo)man how to program.
tryruby.org
347 stars 79 forks source link

.new method doesn't work? #156

Closed hnslnts closed 13 years ago

hnslnts commented 13 years ago

ratings=hash.new {0}
NoMethodError: undefined method `new' for 1026279365:Fixnum

hnslnts commented 13 years ago

Solved! I am not sure if it was because of h and not H or that I started all over again (and did exactly by the book), but it works now!