Module: Configurator

Defined in:
lib/utils/settings.rb

Overview

have to make a tweak to configurator to allow it to work with project class instances

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/utils/settings.rb', line 3

def self.extended(base)
  if base.respond_to?(:class_eval)
    base.class_eval { remove_instance_variable(:@configuration) if defined? @configuration }
  else
    puts "EXTENDING #{base} AS WE SPEAK"
    base.instance_variable_set( :@got_extended, true )
    # base.instance_variable_set( :@configuration, nil )
  end
end