Thursday, 9 October 2014

Variables in Ruby

1. Global variable - prefixed with $
2. Instance variable - prefixed with @
3. Class variable - prefixed with @@

No comments:

Post a Comment