Class: Mess::WordFrequency

Inherits:
Plotter
  • Object
show all
Defined in:
lib/mess/plotter/word_frequency.rb

Instance Attribute Summary

Attributes inherited from Plotter

#data

Instance Method Summary collapse

Methods inherited from Plotter

available, describe, #run

Constructor Details

#initialize(chat) ⇒ WordFrequency

Returns a new instance of WordFrequency.



8
9
10
11
12
13
14
# File 'lib/mess/plotter/word_frequency.rb', line 8

def initialize chat
  super
  @data = Hash.new
  chat.usrs.each do |u|
    @data[u] = Hash.new
  end
end