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
- .debug ⇒ Object
- .debug=(debugging_enabled) ⇒ Object
- .expanded_paths ⇒ Object
- .paths ⇒ Object
- .pattern ⇒ Object
- .pattern=(pattern) ⇒ Object
Class Method Details
.debug ⇒ Object
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_paths ⇒ Object
14 15 16 |
# File 'lib/active_support_decorators/active_support_decorators.rb', line 14 def self. paths.map { |p| Dir[p] }.flatten end |
.paths ⇒ Object
2 3 4 |
# File 'lib/active_support_decorators/active_support_decorators.rb', line 2 def self.paths @paths ||= [] end |
.pattern ⇒ Object
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 |