Flowdock
mattr_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/module/attribute_accessors.rb, line 4
  def mattr_reader(*syms)
    options = syms.extract_options!
    syms.each do |sym|
      class_eval("@@\#{sym} = nil unless defined? @@\#{sym}\n\ndef self.\#{sym}\n@@\#{sym}\nend\n", __FILE__, __LINE__ + 1)

      unless options[:instance_reader] == false
        class_eval("def \#{sym}\n@@\#{sym}\nend\n", __FILE__, __LINE__ + 1)
      end
    end
  end
Register or log in to add new notes.