Last active
August 29, 2015 14:04
-
-
Save stevegraham/8f8caf2f08d874132a7c 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
# Returns methods in the order of definition | |
FooClass.instance_methods(false) | |
=> [:methods, :excluding, :from, :superclass, :returned, :in, :the, :order, :they, :were, :defined] | |
# Returns a sorted list | |
FooClass.instance_methods - FooClass.superclass.instance_methods | |
=> [:defined, :excluding, :from, :in, :methods, :order, :returned, :superclass, :the, :they, :were] | |
# WAT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment