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
-
#initialize(ch) ⇒ ModeTypeB
constructor
A new instance of ModeTypeB.
- #reset(val) ⇒ Object
- #set(val) ⇒ Object
- #status ⇒ Object (also: #value)
Constructor Details
#initialize(ch) ⇒ ModeTypeB
Returns a new instance of ModeTypeB.
1144 1145 1146 1147 |
# File 'lib/rbot/irc.rb', line 1144 def initialize(ch) super @arg = nil end |
Instance Method Details
#reset(val) ⇒ Object
1158 1159 1160 |
# File 'lib/rbot/irc.rb', line 1158 def reset(val) @arg = nil if @arg == val end |
#set(val) ⇒ Object
1154 1155 1156 |
# File 'lib/rbot/irc.rb', line 1154 def set(val) @arg = val end |
#status ⇒ Object Also known as: value
1149 1150 1151 |
# File 'lib/rbot/irc.rb', line 1149 def status @arg end |