method

class_inheritable_reader

v3.0.0 - Show latest stable - Class: Class
class_inheritable_reader(*syms)
public

No documentation available.

# File activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb, line 38
  def class_inheritable_reader(*syms)
    options = syms.extract_options!
    syms.each do |sym|
      next if sym.is_a?(Hash)
      class_eval("def self.\#{sym}                                # def self.after_add\nread_inheritable_attribute(:\#{sym})          #   read_inheritable_attribute(:after_add)\nend                                            # end\n#\n\#{\"                                            #\ndef \#{sym}                                     # def after_add\nself.class.\#{sym}                            #   self.class.after_add\nend                                            # end\n\" unless options[:instance_reader] == false }  # # the reader above is generated unless options[:instance_reader] == false\n", __FILE__, __LINE__ + 1)
    end
  end