Class: Cinch::Test::MockIRC
- Inherits:
-
IRC
- Object
- IRC
- Cinch::Test::MockIRC
- Defined in:
- lib/cinch/test.rb
Overview
Mock Class to handle faux IRC networks
Instance Method Summary collapse
-
#connect ⇒ Object
never try to actually connect to a network.
-
#initialize(*args) ⇒ MockIRC
constructor
A new instance of MockIRC.
Constructor Details
#initialize(*args) ⇒ MockIRC
Returns a new instance of MockIRC.
10 11 12 13 14 15 |
# File 'lib/cinch/test.rb', line 10 def initialize(*args) super # the #setup method adds the @network property among # other things setup end |
Instance Method Details
#connect ⇒ Object
never try to actually connect to a network
19 20 21 |
# File 'lib/cinch/test.rb', line 19 def connect @bot.loggers.info('mock irc: not connecting') end |