2014-06-29から1日間の記事一覧
概要 Module.constants -> [Symbol] 詳細 呼び出した時に参照可能な定数名の配列を返却。 サンプルコード require 'tbpgr_utils' class Hoge CONST1 = 1 CONST2 = "hoge" class InnerHoge INNER_CONST = 1 end def check_module_const(const_name) Module.co…
概要 Module.constants -> [Symbol] 詳細 呼び出した時に参照可能な定数名の配列を返却。 サンプルコード require 'tbpgr_utils' class Hoge CONST1 = 1 CONST2 = "hoge" class InnerHoge INNER_CONST = 1 end def check_module_const(const_name) Module.co…