lib/patience/event_handlers/drop.rb
def put_in_foundation
        if can_put_in_foundation?
          add_to_pile_beneath(@card_to_drop)
          @pile.cards.last.face_up unless @pile.empty?
        else
          call_off
        end
      end
# Adds dropped card to one of Foundation's piles, if it's
# possible. If not, calls off card to it's initital position.
Adds dropped card to one of Foundation's piles, if it's
possible. If not, calls off card to it's initital position.
Adds dropped card to one of Foundation ' s piles if it ' s possible . If not calls off card to it ' s initital position .
def put_in_foundation
        if can_put_in_foundation?
          add_to_pile_beneath(@card_to_drop)
          @pile.cards.last.face_up unless @pile.empty?
        else
          call_off
        end
      end
def put_in_foundation if can_put_in_foundation? add_to_pile_beneath ( @card_to_drop ) @pile . cards . last . face_up unless @pile . empty? else call_off end end
Adds dropped card to one of Foundation's piles, if it's
possible.
Adds dropped card to one of Foundation ' s piles if it ' s possible .