Skip to content

Instantly share code, notes, and snippets.

@havenwood havenwood/ignorand.rb Secret
Created Aug 10, 2019

Embed
What would you like to do?
module_function example for irc
module Example
module_function
def another_method
42
end
end
# This can be called directly, like it's `self.another_method`.
Example.another_method
#=> 42
# Or mixed in, but it will be private when included or prepended.
include Example
another_method
#=> 42
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.