Flowdock
method

class_inheritable_reader

Importance_0
v2.3.8 - 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 10
  def class_inheritable_reader(*syms)
    syms.each do |sym|
      next if sym.is_a?(Hash)
      class_eval "def self.\#{sym}                        # def self.before_add_for_comments\nread_inheritable_attribute(:\#{sym})  #   read_inheritable_attribute(:before_add_for_comments)\nend                                    # end\n#\ndef \#{sym}                             # def before_add_for_comments\nself.class.\#{sym}                    #   self.class.before_add_for_comments\nend                                    # end\n"
    end
  end
Register or log in to add new notes.