Skip to content

Instantly share code, notes, and snippets.

@edisonywh
Created November 9, 2018 11:14
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 edisonywh/aa2774413c52da9a2fc50ca945cad694 to your computer and use it in GitHub Desktop.
Save edisonywh/aa2774413c52da9a2fc50ca945cad694 to your computer and use it in GitHub Desktop.
class Bar
Bar.singleton_class.include Mystery
end
Bar.resolved? #=> true
Bar.singleton_class.instance_methods.grep(/resolved?/) #=> [:resolved?]
Bar.method(:resolved?) #=> #<Method: Class(Mystery)#resolved?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment