Add funtion switching to compilation mode.

I hope to back to compilation mode after switching to inf-ruby-mode from ruby-compilation-mode or
rspec-compilation-mode by inf-ruby-switch-from-compilation.