Class: Mess::WordsPerMessage
- Defined in:
- lib/mess/plotter/words_per_msg.rb
Instance Attribute Summary
Attributes inherited from Plotter
Instance Method Summary collapse
-
#initialize(chat) ⇒ WordsPerMessage
constructor
A new instance of WordsPerMessage.
Methods inherited from Plotter
Constructor Details
#initialize(chat) ⇒ WordsPerMessage
Returns a new instance of WordsPerMessage.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/mess/plotter/words_per_msg.rb', line 8 def initialize chat super @data = Hash.new @msgs = Hash.new @words = Hash.new chat.usrs.each do |u| @data[u] = nil @msgs[u] = 0 @words[u] = 0 end end |