class Pluginf
Public Class Methods
new(regex, name, file_name, help)
click to toggle source
# File lib/rirc.rb, line 69 def initialize(regex, name, file_name, help) @regexp = Regexp.new(regex.to_s) @name = name.to_s @file_name = file_name.to_s @help = help @chan_list = [] @chan_list.push("any") end
Public Instance Methods
add_chan(channel)
click to toggle source
# File lib/rirc.rb, line 119 def add_chan(channel) if !@chan_list.include? channel then @chan_list.push(channel) end end
chans()
click to toggle source
# File lib/rirc.rb, line 95 def chans return @chan_list end
cleanup()
click to toggle source
# File lib/rirc.rb, line 111 def cleanup return "" end
file_name()
click to toggle source
# File lib/rirc.rb, line 103 def file_name return @file_name end
help()
click to toggle source
# File lib/rirc.rb, line 107 def help return @help end
name()
click to toggle source
# File lib/rirc.rb, line 99 def name return @name end
regex()
click to toggle source
# File lib/rirc.rb, line 91 def regex return @regexp end
rm_chan(channel)
click to toggle source
# File lib/rirc.rb, line 115 def rm_chan(channel) @chan_list.delete_if { |a| channel == a } end
script(message, nick, chan)
click to toggle source
default function
# File lib/rirc.rb, line 87 def script(message, nick, chan) end