Skip to content

Instantly share code, notes, and snippets.

Last active December 14, 2015 10:19
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Copy link

Important note: Class names in ruby have to start with a capital letter. So in the "Ruby in 100 minutes" exercise, the code example has "class Sample" -- not "class sample" ! If you are getting an error like:

NameError: undefined local variable or method sample_hello' for main:Object from (irb):1 from C:/RailsInstaller/Ruby1.9.3/bin/irb:12:in


then edit your ruby source file my_program.rb and make sure you have a capital letter 'S' in Sample
class Sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment