Hello, I've collected huge source codes collection of any kinds : work
with text files, database, GUI etc. You can download it here
http://freactor.com/get.php?file=Ruby