title: How does the &.method syntax (safe navigation operator) works in Ruby?
body: <p>I noticed if you type:
  object &amp;, you get the object back.
  For example:</p>
  
  <pre><code>1.class   # =&gt; Integer
  1 &amp;.class # =&gt; Integer
  'hello'.then { |x| x.equal?(x &amp;.itself) }    # =&gt; true
  [1, 2, 3] &amp;.map(&amp;:next)    # =&gt; [2, 3, 4]
  </code></pre>
  
  <p>I am unable to find a documentation for the syntax for <code>object &amp;.method</code>
  How does this syntax work?</p>