class Irc::Channel::ModeHash
Hash of modes. Subclass of Hash that defines any? and all? to check if boolean modes (Type D) are set
Public Instance Methods
all?(*ar)
click to toggle source
# File lib/rbot/irc.rb, line 1150 def all?(*ar) !ar.find { |m| s = m.to_sym ; !(self[s] && self[s].set?) } end
any?(*ar)
click to toggle source
# File lib/rbot/irc.rb, line 1147 def any?(*ar) !!ar.find { |m| s = m.to_sym ; self[s] && self[s].set? } end