Module: Compass::Configuration::Inheritance
- Included in:
- Data
- Defined in:
- lib/compass/configuration/inheritance.rb
Overview
The inheritance module makes it easy for configuration data to inherit from other instances of configuration data. This makes it easier for external code to layer bits of configuration from various sources.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/compass/configuration/inheritance.rb', line 8 def self.included(base) # inherited_data stores configuration data that this configuration object will # inherit if not provided explicitly. base.send :attr_accessor, :inherited_data, :set_attributes, :top_level base.send(:include, InstanceMethods) base.extend(ClassMethods) end |