Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-07-14から1日間の記事一覧

Ruby | Module | class_variables

概要 Module#class_variables -> [Symbol] 詳細 クラス/モジュールに定義されているクラス変数の名前の配列を返却。 サンプルコード require 'tbpgr_utils' module Hogeable @@hoge = 1 end class Hoge @@hoge = 2 end class Hige @@hige = 3 include Hogea…