title: What does Ruby 'to' function do?
body: <p>Pardon the very basic question, but I'm not a Ruby programmer and I need to understand a line of Ruby code:</p>
  
  <pre><code>redirect to('/')
  </code></pre>
  
  <p>redirect is from Sinatra and I understand what it does, but 'to' is such a common word that however I try to Google this function, I can't find it. Following modules are imported:</p>
  
  <pre><code>require 'cgi'
  require 'sinatra'
  require 'gollum'
  require 'mustache/sinatra'
  require 'useragent'
  require 'stringex'
  </code></pre>
  
  <p>And in case it is needed, the <a href="https://github.com/github/gollum/blob/master/lib/gollum/frontend/app.rb" rel="nofollow">whole file</a> or some <a href="https://code.google.com/p/google-api-ruby-client/wiki/OAuth2" rel="nofollow">shorter one</a> that I managed to find.</p>