method
class_inheritable_reader
class_inheritable_reader(*syms)
public
Hide source
# File activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb, line 10 def class_inheritable_reader(*syms) syms.each do |sym| next if sym.is_a?(Hash) class_eval "def self.\#{sym}\nread_inheritable_attribute(:\#{sym})\nend\n\ndef \#{sym}\nself.class.\#{sym}\nend\n" end end