Class: Lita::Handlers::Replace::Buffer

Inherits:
Object
  • Object
show all
Defined in:
lib/lita/handlers/replace.rb

Constant Summary collapse

MAX_BUFFER_LENGTH =
16

Instance Method Summary collapse

Instance Method Details

#log(message) ⇒ Object



9
10
11
12
# File 'lib/lita/handlers/replace.rb', line 9

def log(message)
  messages << message
  truncate
end

#messagesObject



14
15
16
# File 'lib/lita/handlers/replace.rb', line 14

def messages
  @messages ||= []
end