If you want to find out which of the binary versions of some file you are running under Cygwin you can try two commands: "which" and "type".
type -a ruby
Should return something similar to:
16:55:17 ~$ type -a rubyruby is /usr/bin/rubyruby is /bin/rubyruby is /usr/bin/rubySo would this:
which ruby
Cheers!