Sha256: 33cfe1fb22414b89bad01d975a4fd2bab6ef2a479bcaca32f23dee08ba874e8a
Contents?: true
Size: 586 Bytes
Versions: 1
Compression:
Stored size: 586 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.0 | lib/ehbrs_ruby_utils/bga/table_whatsapp_formatter/format_player.rb |