update all my ruby code

they can be used at home
commit ex10.rb

commit