lib/patience/event_handlers/click.rb
def refill_stock
        @areas[:waste].tap { |waste|
          waste.cards.reverse_each do |card|
            @areas[:stock].add_from(waste.piles.first, card)
          end
        }
      end
# Removes all cards from Stock and adds them to Waste.
Removes all cards from Stock and adds them to Waste.
Removes all cards from Stock and adds them to Waste .
def refill_stock
        @areas[:waste].tap { |waste|
          waste.cards.reverse_each do |card|
            @areas[:stock].add_from(waste.piles.first, card)
          end
        }
      end
def refill_stock @areas [ :waste ] . tap { | waste | waste . cards . reverse_each do | card | @areas [ :stock ] . add_from ( waste . piles . first , card ) end } end
Removes all cards from Stock and adds them to Waste.
Removes all cards from Stock and adds them to Waste .