Module: Glitter::Configurable

Defined in:
lib/glitter/configurable.rb

Overview

This mix-in Creates a DSL for configuring a class so that we don’t have to litter our application with ‘self.attr = “val”` all over the place or from config files.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
# File 'lib/glitter/configurable.rb', line 5

def self.included(base)
  base.send :extend,  ClassMethods
  base.send :include, InstanceMethods
end