2008-08-13 モジュール Ruby リファレンス module HelloWorld Version = "1.0.0" #定数定義 def hello(name) return 'hello,' + name end module_function :hello #モジュール関数として外部に公開する end puts HelloWorld.hello('高砂')