Module: Disguise

Defined in:
lib/disguise/config.rb,
lib/disguise/engine.rb,
lib/generators/disguise/theme_generator.rb

Overview

Configure disguise

Defined Under Namespace

Modules: Generators Classes: Configuration, Engine

Class Method Summary collapse

Class Method Details

.configurationObject


5
6
7
8
# File 'lib/disguise/config.rb', line 5

def self.configuration
  # In case the user doesn't setup a configure block we can always return default settings:
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:


10
11
12
13
# File 'lib/disguise/config.rb', line 10

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end