Class: TF2LineParser::Events::Say

Inherits:
Chat
  • Object
show all
Defined in:
lib/tf2_line_parser/events/chat.rb

Instance Attribute Summary

Attributes inherited from Event

#airshot, #cap_name, #cap_number, #customkill, #healing, #item, #length, #message, #method, #player, #role, #score, #target, #team, #time, #type, #ubercharge, #unknown, #value, #weapon

Class Method Summary collapse

Methods inherited from Chat

attributes, #initialize, regex_results

Methods inherited from Event

parse_player_section, parse_target_section, #parse_time, regex_cap, regex_console, regex_message, regex_player, regex_results, regex_target, regex_time, time_format, types

Constructor Details

This class inherits a constructor from TF2LineParser::Events::Chat

Class Method Details

.regexObject



29
30
31
# File 'lib/tf2_line_parser/events/chat.rb', line 29

def self.regex
  @regex ||= /#{regex_time} #{regex_player} say #{regex_message}/.freeze
end