lib/patience/processable.rb
def find_card_in(areas)
      find_pile_in(areas) do |pile|
        card = pile.cards.reverse.find { |card| yield(card) }
        return card unless card.nil?
      end
      nil
    end
# Returns card, which is being clicked.
Returns card, which is being clicked.
Returns card which is being clicked .
def find_card_in(areas)
      find_pile_in(areas) do |pile|
        card = pile.cards.reverse.find { |card| yield(card) }
        return card unless card.nil?
      end
      nil
    end
def find_card_in ( areas ) find_pile_in ( areas ) do | pile | card = pile . cards . reverse . find { | card | yield ( card ) } return card unless card . nil? end nil end
Returns card, which is being clicked.
Returns card which is being clicked .
areas