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.



1256
1257
1258
1259
# File 'lib/rbot/irc.rb', line 1256

def initialize(ch)
  super
  @set = false
end

Instance Method Details

#resetObject



1269
1270
1271
# File 'lib/rbot/irc.rb', line 1269

def reset
  @set = false
end

#setObject



1265
1266
1267
# File 'lib/rbot/irc.rb', line 1265

def set
  @set = true
end

#set?Boolean

Returns:

  • (Boolean)


1261
1262
1263
# File 'lib/rbot/irc.rb', line 1261

def set?
  return @set
end