From: ts Date: 2003-09-05T17:31:49+09:00 Subject: Re: module_function semantics >>>>> "W" == William Webber writes: W> module Foo W> module_function module_function make a private method and a public singleton method. W> def bar() W> "baz" W> end W> end For example svg% cat b.rb #!/usr/bin/ruby module A def a puts "a" end module_function :a def self.b puts "b" end end A.a A.b include A a b svg% svg% b.rb a b a ./b.rb:18: undefined local variable or method `b' for main:Object (NameError) svg% Guy Decoux