Module: Icing
- Defined in:
- lib/icing.rb,
lib/icing/version.rb,
lib/icing/decorator.rb,
lib/icing/decorations/base.rb,
lib/icing/decorator_factory.rb,
lib/icing/decoration_factory.rb,
lib/icing/decorations/composite.rb
Defined Under Namespace
Modules: Decorations
Classes: DecorationFactory, Decorator, DecoratorFactory
Constant Summary
collapse
- VERSION =
'0.0.1'.freeze
Class Method Summary
collapse
Class Method Details
.decoration_factory ⇒ Object
10
11
12
|
# File 'lib/icing.rb', line 10
def self.decoration_factory
@decoration_factory ||= DecorationFactory.new
end
|
.decorator(undecorated_object, definition) ⇒ Object
14
15
16
17
18
|
# File 'lib/icing.rb', line 14
def self.decorator(undecorated_object, definition)
@decorator_factory ||= DecoratorFactory.new
@decorator_factory.create(undecorated_object, definition)
end
|