Playing cards: Difference between revisions

→‎{{header|Ruby}}: it appears that you don't need to flatten
m (→‎{{header|Ruby}}: nl after trans too)
(→‎{{header|Ruby}}: it appears that you don't need to flatten)
Line 1,071:
# class variables (private)
@@suit_value = Hash[ * Suits.each_with_index.to_a.flatten ]
@@pip_value = Hash[ * Pips.each_with_index.to_a.flatten ]
attr_reader :pip, :suit
Anonymous user