Card_game is a project mainly written in Ruby, it's free.
Base Objects for a simple card game
A basic structure to create card games