title: Camping's path building method
body: <p>Could someone explain for me this part of the code from Lucky Stiff's Camping micro-framework:</p>
  
  <pre><code># Simply builds a complete path from a path +p+ within the app.  If your
  # application is mounted at &lt;tt&gt;/blog&lt;/tt&gt;:
  #
  #   self / "/view/1"    #=&gt; "/blog/view/1"
  #   self / "styles.css" #=&gt; "styles.css"
  #   self / R(Edit, 1)   #=&gt; "/blog/edit/1"
  #
  def /(p); p[0] == ?/ ? @root + p : p end
  </code></pre>
  
  <p><a href="https://github.com/camping/camping/blob/master/lib/camping-unabridged.rb#L209" rel="nofollow">Source</a></p>