Created
February 9, 2012 05:19
-
-
Save claudiolassala/1777547 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 SomeNamespace::SomeModule | |
# how do I get this method mixed into the class below? | |
def some_module_method(x, y, z) | |
end | |
end | |
class SomeNamespace::SomeClass | |
# include SomeNamespace::SomeModule | |
# update: it seems like instead of "include", I should use "extend"... | |
extend SomeNamespace::SomeModule | |
def self.some_class_method | |
some_module_method(1, 2, 3) | |
end | |
end |
jakcharlton
commented
Feb 9, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment