Class: Tzispa::Utils::Decorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Tzispa::Utils::Decorator
- Defined in:
- lib/tzispa/utils/decorator.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
Instance Method Summary collapse
- #cclass ⇒ Object
-
#initialize(component) ⇒ Decorator
constructor
A new instance of Decorator.
Constructor Details
#initialize(component) ⇒ Decorator
Returns a new instance of Decorator.
9 10 11 12 |
# File 'lib/tzispa/utils/decorator.rb', line 9 def initialize(component) @component = component super end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
7 8 9 |
# File 'lib/tzispa/utils/decorator.rb', line 7 def component @component end |
Instance Method Details
#cclass ⇒ Object
14 15 16 |
# File 'lib/tzispa/utils/decorator.rb', line 14 def cclass @component.class end |