Class: Irc::Channel::ModeTypeC
Overview
Channel modes of type C need an argument when set, but not when they get reset
Example: l (limit)
Instance Attribute Summary
Attributes inherited from Mode
Instance Method Summary (collapse)
-
- (ModeTypeC) initialize(ch)
constructor
A new instance of ModeTypeC.
- - (Object) reset
- - (Object) set(val)
- - (Object) status (also: #value)
Constructor Details
- (ModeTypeC) initialize(ch)
Returns a new instance of ModeTypeC
1230 1231 1232 1233 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1230 def initialize(ch) super @arg = nil end |
Instance Method Details
- (Object) reset
1244 1245 1246 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1244 def reset @arg = nil end |
- (Object) set(val)
1240 1241 1242 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1240 def set(val) @arg = val end |
- (Object) status Also known as: value
1235 1236 1237 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1235 def status @arg end |