Module: ActiveSupportDecorators

Defined in:
lib/active_support_decorators/version.rb,
lib/active_support_decorators/active_support_decorators.rb

Constant Summary collapse

VERSION =
'1.0.2'
DECORATOR_PATTERN =
'_decorator'

Class Method Summary collapse

Class Method Details

.add(path, decorator_path) ⇒ Object



12
13
14
15
# File 'lib/active_support_decorators/active_support_decorators.rb', line 12

def self.add(path, decorator_path)
  dependencies[path] ||= []
  dependencies[path] << decorator_path
end

.clearObject



4
5
6
# File 'lib/active_support_decorators/active_support_decorators.rb', line 4

def self.clear
  dependencies.clear
end

.debugObject



17
18
19
# File 'lib/active_support_decorators/active_support_decorators.rb', line 17

def self.debug
  @debug ||= false
end

.debug=(debugging_enabled) ⇒ Object



21
22
23
# File 'lib/active_support_decorators/active_support_decorators.rb', line 21

def self.debug=(debugging_enabled)
  @debug = debugging_enabled
end

.dependenciesObject



8
9
10
# File 'lib/active_support_decorators/active_support_decorators.rb', line 8

def self.dependencies
  @dependencies ||= {}
end