Skip to content
Tags

Class variables, instance variables and class level instance variables

November 21, 2011

Instance variables are set for each instance.

Class variables are set for each class, so that when once they are set, they do not change.

What if you want instance variables for the class, which basically can be inherited. This blog entry talks along those line:

http://railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/

 

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: