Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/yaib/string.rb
Instance Method Summary collapse
- #deop? ⇒ Boolean
- #invite? ⇒ Boolean
- #join? ⇒ Boolean
- #op? ⇒ Boolean
- #part? ⇒ Boolean
- #ping? ⇒ Boolean
- #privmsg? ⇒ Boolean
- #quit? ⇒ Boolean
Instance Method Details
#deop? ⇒ Boolean
17 18 19 |
# File 'lib/yaib/string.rb', line 17 def deop? self=~/^\:.*!.* MODE \#.* \-o .*/ end |
#invite? ⇒ Boolean
20 21 22 |
# File 'lib/yaib/string.rb', line 20 def invite? self=~/^\:.*!.* INVITE .* \:.*/ end |
#join? ⇒ Boolean
11 12 13 |
# File 'lib/yaib/string.rb', line 11 def join? self=~/^\:.*!.*\@.*JOIN\ :\#.*/ end |
#op? ⇒ Boolean
14 15 16 |
# File 'lib/yaib/string.rb', line 14 def op? self=~/^\:.*!.* MODE \#.* \+o .*/ end |
#part? ⇒ Boolean
5 6 7 |
# File 'lib/yaib/string.rb', line 5 def part? self=~/^\:.*!.*\@.*PART\ \#.*/ end |
#ping? ⇒ Boolean
23 24 25 |
# File 'lib/yaib/string.rb', line 23 def ping? self=~/^PING :.*/ end |
#privmsg? ⇒ Boolean
2 3 4 |
# File 'lib/yaib/string.rb', line 2 def privmsg? self=~/^\:.*!.*\@.*PRIVMSG\ .* \:.*/ end |
#quit? ⇒ Boolean
8 9 10 |
# File 'lib/yaib/string.rb', line 8 def quit? self=~/^\:.*!.*\@.*QUIT\ :.*/ end |