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 MyModule | |
# Defines method_missing | |
module ClassMethods | |
def method_missing(method) | |
puts "Method: \"#{method}\" does not exist." | |
end | |
end | |
# Will add method_missing to MyModule itself |