Created
December 16, 2013 16:41
-
-
Save toctan/7990091 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@foo = 'foo' | |
Object.class_variable_get(:@@foo) # => "foo" | |
class Bar | |
def self.foo | |
@@foo | |
end | |
end | |
Bar.foo # => "foo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment