Class: Haskii::BarChart
- Inherits:
-
Object
- Object
- Haskii::BarChart
- Defined in:
- lib/haskii/bar_chart.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(frequences, emoji) ⇒ BarChart
constructor
A new instance of BarChart.
- #render ⇒ Object
Constructor Details
#initialize(frequences, emoji) ⇒ BarChart
Returns a new instance of BarChart.
4 5 6 |
# File 'lib/haskii/bar_chart.rb', line 4 def initialize(frequences, emoji) @matrix = Haskii::MimiMatrix.new(frequences, emoji).create end |
Instance Method Details
#render ⇒ Object
8 9 10 |
# File 'lib/haskii/bar_chart.rb', line 8 def render raise NotImplementedError, "render method is not implemented" end |