Module: ClassLevelInheritableAttributes

Included in:
Medea::JasonBase
Defined in:
lib/medea/inheritable_attributes.rb

Overview

This module allows for an attribute to be defined on a superclass and carry down into sub-classes with its default. Taken from railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/medea/inheritable_attributes.rb', line 5

def self.included(base)
  base.extend(ClassMethods)    
end