Class: Irc::Channel::ModeTypeD

Inherits:
Mode show all
Defined in:
lib/rbot/irc.rb

Overview

Channel modes of type D are basically booleans

Example: m (moderate)

Instance Attribute Summary

Attributes inherited from Mode

#channel

Instance Method Summary collapse

Constructor Details

#initialize(ch) ⇒ ModeTypeD

Returns a new instance of ModeTypeD.



1223
1224
1225
1226
# File 'lib/rbot/irc.rb', line 1223

def initialize(ch)
  super
  @set = false
end

Instance Method Details

#resetObject



1236
1237
1238
# File 'lib/rbot/irc.rb', line 1236

def reset
  @set = false
end

#setObject



1232
1233
1234
# File 'lib/rbot/irc.rb', line 1232

def set
  @set = true
end

#set?Boolean

Returns:

  • (Boolean)


1228
1229
1230
# File 'lib/rbot/irc.rb', line 1228

def set?
  return @set
end