Created
May 6, 2016 18:12
-
-
Save rodolfobandeira/a854cf9f36b2342bb56c9d178588bae0 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
class Foo | |
@foo = { | |
'test' => {'test2' => 'test3'}, | |
'test4' => {'test5' => 'test6'}, | |
} | |
def self.foo? | |
@foo | |
end | |
def mymethod | |
puts self.class.foo? | |
end | |
end | |
Foo.new.mymethod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment