Module Mixin & Class Variables
I would like to understand better what happens when one includes a
module with class variables inside a class.
@@test = "test"
puts "From Module"
puts "From Class"
> From Class
> From Module
Doing so, the output shows that in both cases the @@test object is the
same. Does someone have the big picture about class variables look up
while mixin a module inside a class?
Posted via http://www.ruby-forum.com/.
|All times are GMT. The time now is 08:04 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.