Sha256: e9049bd43ffd4a1a18a2b14129e4d8da6d087618bc3863d693d57653583454cd
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' module EhbrsRubyUtils module Bga class TableWhatsappFormatter class FormatPlayer enable_method_class common_constructor :table_formatter, :player FIELD_SEPARATOR = ' - ' def result %w[table_rank name score].map { |v| send(v) }.join(FIELD_SEPARATOR) end def table_rank "*#{player.table_rank}º*" end delegate :name, to: :player def score "⭐ #{player.score}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ehbrs_ruby_utils-0.25.1 | lib/ehbrs_ruby_utils/bga/table_whatsapp_formatter/format_player.rb |