Class: Irc::Channel::ModeTypeB
Overview
Channel modes of type B need an argument
Example: k (key)
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Mode
Instance Method Summary (collapse)
-
- (ModeTypeB) initialize(ch)
constructor
A new instance of ModeTypeB.
- - (Object) reset(val)
- - (Object) set(val)
- - (Object) status (also: #value)
Constructor Details
- (ModeTypeB) initialize(ch)
Returns a new instance of ModeTypeB
1177 1178 1179 1180 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1177 def initialize(ch) super @arg = nil end |
Instance Method Details
- (Object) reset(val)
1191 1192 1193 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1191 def reset(val) @arg = nil if @arg == val end |
- (Object) set(val)
1187 1188 1189 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1187 def set(val) @arg = val end |
- (Object) status Also known as: value
1182 1183 1184 |
# File '/home/apoc/projects/ruby/rbot/lib/rbot/irc.rb', line 1182 def status @arg end |