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

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