lib/cards_lib.rb in cards_lib-0.2.3 vs lib/cards_lib.rb in cards_lib-0.2.4
- old
+ new
@@ -10,7 +10,7 @@
# Macro
# Cards[]
# generate Card instances from string
# representations of their faces
- Cards = ->*c{ c.map {|*opts| Card.new(*opts)} }
+ Cards = ->*c{ c.map {|*opts| Card.new(*opts.flatten)} }
end