Class: Haskii::BarChart

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

Direct Known Subclasses

HtmlChart, TerminalChart

Instance Method Summary collapse

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

#renderObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/haskii/bar_chart.rb', line 8

def render
  raise NotImplementedError, "render method is not implemented"
end