module MyModule def my_public_method end def my_private_method end end

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
module MyModule
def my_public_method
end
def my_private_method
end
end
class MyClass
include MyModule
# Goes just fine.
my_public_method
# Bang! NameError...
my_private_method
end