Method: Mchat::Store#hook_quit

Defined in:
lib/mchat/store.rb

#hook_quitObject



86
87
88
89
90
91
92
# File 'lib/mchat/store.rb', line 86

def hook_quit
  @store.transaction do
    messages = @store[@field_name]
    @store[@field_history_name] += messages
    @store[@field_name] = []
  end
end