Module: IIRC::IRCv3::Caps

Included in:
IIRC::IRCv3Bot
Defined in:
lib/iirc/modules/ircv3/caps.rb

Instance Method Summary collapse

Instance Method Details

#cap!(name) ⇒ Object



12
13
14
# File 'lib/iirc/modules/ircv3/caps.rb', line 12

def cap! name
  self << "CAP REQ :#{name}"
end

#cap?(name) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/iirc/modules/ircv3/caps.rb', line 8

def cap? name
  caps.include? name
end

#capsObject

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/iirc/modules/ircv3/caps.rb', line 4

def caps
  raise NotImplementedError.new
end