Module: Netzke::Draper::Configuration

Defined in:
lib/netzke/draper/configuration.rb

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



11
12
13
# File 'lib/netzke/draper/configuration.rb', line 11

def self.configure
  yield self
end

.decorate_by_defaultObject



15
16
17
# File 'lib/netzke/draper/configuration.rb', line 15

def self.decorate_by_default
  @decorate_by_default
end

.decorate_by_default=(value) ⇒ Object



19
20
21
# File 'lib/netzke/draper/configuration.rb', line 19

def self.decorate_by_default=(value)
  @decorate_by_default = value
end

.reset_configObject



5
6
7
8
9
# File 'lib/netzke/draper/configuration.rb', line 5

def self.reset_config
  configure do |config|
    config.decorate_by_default = true
  end
end