Last active
December 11, 2015 10:28
-
-
Save tskogberg/4586376 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
module Foo | |
def bar | |
end | |
end | |
class Baz | |
include Foo | |
def Kaz | |
end | |
end | |
Baz.new().public_methods(false) # Show public methods defined in the class Baz | |
# How to show instance methods included from modules? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Baz.instance_methods - Baz.superclass.instance_methods