Flowdock
method

class_inheritable_reader

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

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.