Skip to content

Instantly share code, notes, and snippets.

@tskogberg
Last active December 11, 2015 10:28
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 tskogberg/4586376 to your computer and use it in GitHub Desktop.
Save tskogberg/4586376 to your computer and use it in GitHub Desktop.
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?
@tskogberg
Copy link
Author

Baz.instance_methods - Baz.superclass.instance_methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment