Class: ChartDecorator
- Inherits:
-
Object
- Object
- ChartDecorator
- Defined in:
- lib/chart_decorator.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#draw ⇒ Object
override the details method to include the description of the extra feature.
-
#initialize(real_chart) ⇒ ChartDecorator
constructor
A new instance of ChartDecorator.
Constructor Details
#initialize(real_chart) ⇒ ChartDecorator
Returns a new instance of ChartDecorator.
11 12 13 14 |
# File 'lib/chart_decorator.rb', line 11 def initialize(real_chart) @real_chart = real_chart @features = "no feature" end |
Instance Method Details
#draw ⇒ Object
override the details method to include the description of the extra feature
19 20 21 |
# File 'lib/chart_decorator.rb', line 19 def draw return "Chart Decorator" end |