Module: FEEN::Dumper::InHand
- Defined in:
- lib/feen/dumper/in_hand.rb
Overview
The pieces in hand module.
Class Method Summary collapse
-
.dump(piece_names) ⇒ String
Serialize pieces in hand lists into a string.
Class Method Details
.dump(piece_names) ⇒ String
Serialize pieces in hand lists into a string.
20 21 22 23 24 |
# File 'lib/feen/dumper/in_hand.rb', line 20 def self.dump(piece_names) return "-" if piece_names.empty? piece_names.sort.join(",") end |