# File lib/eymiha.rb, line 58 def class_attr_reader(*kattrs) kattrs.each { |kattr| ka = kattr.to_s reader = "def self.\#{ka}\n @@\#{ka}\nend\n@@\#{ka} = nil\n" self.module_eval reader } end