Instantly share code, notes, and snippets.

Embed
What would you like to do?
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