Module: ActiveSupportDecorators

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

Constant Summary collapse

VERSION =
'2.0.1'

Class Method Summary collapse

Class Method Details

.debugObject



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

def self.debug
  @debug ||= false
end

.debug=(debugging_enabled) ⇒ Object



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

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

.expanded_pathsObject



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

def self.expanded_paths
  paths.map { |p| Dir[p] }.flatten
end

.pathsObject



2
3
4
# File 'lib/active_support_decorators/active_support_decorators.rb', line 2

def self.paths
  @paths ||= []
end

.patternObject



6
7
8
# File 'lib/active_support_decorators/active_support_decorators.rb', line 6

def self.pattern
  @pattern ||= '_decorator'
end

.pattern=(pattern) ⇒ Object



10
11
12
# File 'lib/active_support_decorators/active_support_decorators.rb', line 10

def self.pattern=(pattern)
  @pattern = pattern
end