Browser/os detect (functions and example without JS)

Hello people!
Many people say - How detecting browser and OS without JavaScript?
I create example how detecting browser and os with Ruby CGI!
Download detect.zip,Unzip this archive.
2 file - detect.rb and index.rb
detect.rb - functions
index.rb - example
def cyberlangos - your lang for OS (example Your OS:)
def cyberlangbrowser - you lang for browser (example Your browser:)
Good luck
Alexey T. aka Dracula