Skip to content

Instantly share code, notes, and snippets.

@jayrobin

jayrobin/extend_a_module.rb Secret

Created Oct 11, 2016
Embed
What would you like to do?
class MyClass
extend FormatHelper
def self.my_method
phone_number
end
end
MyClass.my_method # works
MyClass.phone_number # works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.