# File lib/facet/class/cattr_reader.rb, line 15 def cattr_reader(*syms) syms.each do |sym| class_eval "if ! defined? @@\#{sym}\n@@\#{sym} = nil\nend\ndef self.\#{sym}\n@@\#{sym}\nend\ndef \#{sym}\nself.class.\#{sym}\nend\n" end end