bject13.html?swift"><code>RbObject</code></a> that represents a Ruby constant.</p>
<p>In Ruby constants include things that users think of as constants like
<code>Math::PI</code>, classes, and modules.  You can use this routine with
any kind of constant, but see <a href="../types/rbobjectaccess1.html?swift#getclass_1"><code>getClass(...)</code></a> for a little more sugar.</p>
<pre><code class="language-swift">let rubyPi = Ruby.getConstant(&quot;Math::PI&quot;)
let crumbs = rubyPi - Double.pi
</code></pre>
