class SSCBot::ChatLog::Observer

@author Jonathan Bradley Whited @since 0.1.0

Attributes

funcs[R]
object[R]

Public Class Methods

new(object,*funcs) click to toggle source
Calls superclass method
# File lib/ssc.bot/chat_log.rb, line 243
def initialize(object,*funcs)
  super()

  raise ArgumentError,'empty funcs' if funcs.empty?

  @funcs = funcs
  @object = object
end

Public Instance Methods

notify(chat_log,message) click to toggle source
# File lib/ssc.bot/chat_log.rb, line 252
def notify(chat_log,message)
  @funcs.each do |func|
    @object.__send__(func,chat_log,message)
  end
end