Class: QuakeLogParser::Patterns
- Inherits:
-
Object
- Object
- QuakeLogParser::Patterns
- Defined in:
- lib/quake-log-parser/patterns.rb
Class Method Summary collapse
- .new_game ⇒ Object
- .new_kill ⇒ Object
- .new_kill_infos ⇒ Object
- .new_player ⇒ Object
- .new_player_infos ⇒ Object
Class Method Details
.new_game ⇒ Object
3 4 5 |
# File 'lib/quake-log-parser/patterns.rb', line 3 def self.new_game /InitGame:/ end |
.new_kill ⇒ Object
15 16 17 |
# File 'lib/quake-log-parser/patterns.rb', line 15 def self.new_kill /Kill:/ end |
.new_kill_infos ⇒ Object
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_player ⇒ Object
7 8 9 |
# File 'lib/quake-log-parser/patterns.rb', line 7 def self.new_player /ClientUserinfoChanged:/ end |
.new_player_infos ⇒ Object
11 12 13 |
# File 'lib/quake-log-parser/patterns.rb', line 11 def self.new_player_infos /ClientUserinfoChanged: [0-9]+ n\\(.*?)\\t/ end |