Class: Irc::Channel::ModeTypeD
Overview
Channel modes of type D are basically booleans
Example: m (moderate)
Instance Attribute Summary
Attributes inherited from Mode
Instance Method Summary (collapse)
-
- (ModeTypeD) initialize(ch)
constructor
A new instance of ModeTypeD.
- - (Object) reset
- - (Object) set
- - (Boolean) set?
Constructor Details
- (ModeTypeD) initialize(ch)
Returns a new instance of ModeTypeD
1256 1257 1258 1259 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1256 def initialize(ch) super @set = false end |
Instance Method Details
- (Object) reset
1269 1270 1271 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1269 def reset @set = false end |
- (Object) set
1265 1266 1267 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1265 def set @set = true end |
- (Boolean) set?
1261 1262 1263 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1261 def set? return @set end |