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
- .add(path, decorator_path) ⇒ Object
- .clear ⇒ Object
- .debug ⇒ Object
- .debug=(debugging_enabled) ⇒ Object
- .dependencies ⇒ Object
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 |
.clear ⇒ Object
4 5 6 |
# File 'lib/active_support_decorators/active_support_decorators.rb', line 4 def self.clear dependencies.clear end |
.debug ⇒ Object
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 |
.dependencies ⇒ Object
8 9 10 |
# File 'lib/active_support_decorators/active_support_decorators.rb', line 8 def self.dependencies @dependencies ||= {} end |