So suppose I have this (not working):
class User description = \"I am User class variable\" def print puts description end end
You can access the class-scope using define_method.
define_method
class User description = "I am User class variable" define_method :print do puts description end end
> User.new.print I am User class variable => nil
I don't think it's good idea, though :)