Created
August 22, 2014 13:03
-
-
Save enricostano/f867d74bb81a60c5b09b to your computer and use it in GitHub Desktop.
Ruby class variables
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
class FooBar | |
class << self | |
attr_accessor :variabile | |
def hola | |
p variabile | |
end | |
private | |
def poo | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment