Sha256: f4ab6f5b51ae3c0518e41fc04735f25bd2a76504b09ffdba4ec0ec5f2e0a82b3
Contents?: true
Size: 295 Bytes
Versions: 4
Compression:
Stored size: 295 Bytes
Contents
class ConnectionMock attr_accessor :message_count, :messages, :options, :nick def initialize(options = {}) @message_count = 0 options.each do |k, v| send(:"#{k}=", v) end end def msg(where, message) @message_count += 1 (@messages ||= []) << message end end
Version data entries
4 entries across 4 versions & 2 rubygems