Ruby 初心者スレッド Part 33
■ このスレッドは過去ログ倉庫に格納されています
0200デフォルトの名無しさん
2009/12/14(月) 06:07:46リファレンスより
If used with no arguments,
subsequently defined methods become module functions.
モジュール定義の頭に module_function と引数なしで書いておけば
以後に定義するメソッドにはすべて module_function が適用される。
public, private とかと同じだよ。
■ このスレッドは過去ログ倉庫に格納されています