Class: QuakeLogParser::Patterns

Inherits:
Object
  • Object
show all
Defined in:
lib/quake-log-parser/patterns.rb

Class Method Summary collapse

Class Method Details

.new_gameObject



3
4
5
# File 'lib/quake-log-parser/patterns.rb', line 3

def self.new_game
  /InitGame:/
end

.new_killObject



15
16
17
# File 'lib/quake-log-parser/patterns.rb', line 15

def self.new_kill
  /Kill:/
end

.new_kill_infosObject



19
20
21
# File 'lib/quake-log-parser/patterns.rb', line 19

def self.new_kill_infos
  /Kill: [0-9]+ [0-9]+ [0-9]+: (.*?) killed (.*?) by (.*?)$/
end

.new_playerObject



7
8
9
# File 'lib/quake-log-parser/patterns.rb', line 7

def self.new_player
  /ClientUserinfoChanged:/
end

.new_player_infosObject



11
12
13
# File 'lib/quake-log-parser/patterns.rb', line 11

def self.new_player_infos
  /ClientUserinfoChanged: [0-9]+ n\\(.*?)\\t/
end