In Files

Parent

Methods

Class/Module Index [+]

Quicksearch

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 1143
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 1140
def any?(*ar)
  !!ar.find { |m| s = m.to_sym ; self[s] && self[s].set? }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.