Ruby: variable scope, by naming convention


  • var — local variable
  • @var — instance variable
  • $var — global variable

One response to “Ruby: variable scope, by naming convention”

Leave a Reply to polawat phetra Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: