Class: ChartDecorator

Inherits:
Object
  • Object
show all
Defined in:
lib/chart_decorator.rb

Direct Known Subclasses

ColumnChartDecorator, LineChartDecorator

Instance Method Summary collapse

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

#drawObject

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