class Cinch::Callback
Class used for encapsulating handlers to prevent them from overwriting instance variables in {Bot}
@api private
Attributes
bot[R]
@return [Bot]
Public Class Methods
new(bot)
click to toggle source
# File lib/cinch/callback.rb, line 11 def initialize(bot) @bot = bot end
Public Instance Methods
synchronize(name, &block)
click to toggle source
(see Cinch::Bot#synchronize)
# File lib/cinch/callback.rb, line 16 def synchronize(name, &block) @bot.synchronize(name, &block) end