class TinyIRC::Group

Attributes

log[R]
name[R]
perms[R]

Public Class Methods

new(name) click to toggle source
# File lib/tinyirc/perms.rb, line 34
def initialize(name)
  @name  = name
  @perms = Set.new
  TinyIRC::Group::log.write "groups += #{name}"
end

Public Instance Methods

perm(plugin, command, branch) click to toggle source
# File lib/tinyirc/perms.rb, line 40
def perm(plugin, command, branch)
  if @perms.add?(TinyIRC::Permission.new(plugin, command, branch))
    TinyIRC::Group::log.write "#{@name} += #{plugin}/#{command}/#{branch}"
  end
end