Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/yaib/string.rb

Instance Method Summary collapse

Instance Method Details

#deop?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/yaib/string.rb', line 17

def deop?
	self=~/^\:.*!.* MODE \#.* \-o .*/
end

#invite?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/yaib/string.rb', line 20

def invite?
	self=~/^\:.*!.* INVITE .* \:.*/
end

#join?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/yaib/string.rb', line 11

def join?
	self=~/^\:.*!.*\@.*JOIN\ :\#.*/
end

#op?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/yaib/string.rb', line 14

def op?
	self=~/^\:.*!.* MODE \#.* \+o .*/
end

#part?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/yaib/string.rb', line 5

def part?
	self=~/^\:.*!.*\@.*PART\ \#.*/
end

#ping?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/yaib/string.rb', line 23

def ping?
	self=~/^PING :.*/
end

#privmsg?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/yaib/string.rb', line 2

def privmsg?
	self=~/^\:.*!.*\@.*PRIVMSG\ .* \:.*/
end

#quit?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/yaib/string.rb', line 8

def quit?
	self=~/^\:.*!.*\@.*QUIT\ :.*/
end