Arie/tf2_line_parser

View on GitHub
lib/tf2_line_parser/events/suicide.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module TF2LineParser
  module Events
    class Suicide < PlayerActionEvent
      def self.action_text
        @action_text ||= 'committed suicide with'
      end

      def self.regex_action
        @regex_role ||= '\"(?\'method\'\w*)\"'
      end

      def self.item
        :method
      end
    end
  end
end