Using Ruby and openssl

Hi

I am interested to use the openssl module of ruby
There is a way to force the protocol to TLS and select the cipher and
hash to use in a connection?

Thanks a lot
   Jose