aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class/attribute.rb
Commit message (Collapse)AuthorAgeFilesLines
* class_attribute gets instance methods which delegate to but may override ↵Jeremy Kemper2010-03-081-2/+23
| | | | their class values as you'd expect. Disable instance writer methods with :instance_writer => false.
* Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.Jeremy Kemper2010-02-251-5/+6
|
* Introduce class_attribute to declare inheritable class attributes. Writing ↵Jeremy Kemper2010-02-011-0/+36
an attribute on a subclass behaves just like overriding the superclass reader method. Unifies and replaces most usage of cattr_accessor, class_inheritable_attribute, superclass_delegating_attribute, and extlib_inheritable_attribute.