Skip to content

Instantly share code, notes, and snippets.

@sobstel
Created November 15, 2011 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sobstel/1367629 to your computer and use it in GitHub Desktop.
Save sobstel/1367629 to your computer and use it in GitHub Desktop.
Call class method via instance
class SomeClass
def self.some_method
end
end
some_obj = SomeClass.new
some_obj.class.some_method # = SomeClass.some_method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment