Skip to content

Instantly share code, notes, and snippets.

@rodolfobandeira
Created May 6, 2016 18:12
Show Gist options
  • Save rodolfobandeira/a854cf9f36b2342bb56c9d178588bae0 to your computer and use it in GitHub Desktop.
Save rodolfobandeira/a854cf9f36b2342bb56c9d178588bae0 to your computer and use it in GitHub Desktop.
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