Hash of modes. Subclass of Hash that defines any? and all? to check if boolean modes (Type D) are set
[Source]
# File lib/rbot/irc.rb, line 1143 1143: def all?(*ar) 1144: !ar.find { |m| s = m.to_sym ; !(self[s] && self[s].set?) } 1145: end
# File lib/rbot/irc.rb, line 1140 1140: def any?(*ar) 1141: !!ar.find { |m| s = m.to_sym ; self[s] && self[s].set? } 1142: end
[Validate]