Instance var Vs Class var
Posted in Ruby, coding on Mar 22nd, 2008 No Comments »
# class varibale starts with @@
# Must be initialized before they are used
# A class variable is shared among all objects of a class
# There is only one copy of a particular class variable for a given class
# It is also accessible to the class methods
#Sometimes a class needs to provide methods that work without […]

