citizen428.blog()

Try to learn something about everything

Babysteps

While writing my second Shoes app I ran into the problem of how to require a gem from within Shoes. Luckily the truth is out there, but I wanna share it with you nonetheless:

1
2
3
4

1
2
3
4
<span class='line'><span class="no">Shoes</span><span class="o">.</span><span class="n">setup</span> <span class="k">do</span>
</span><span class='line'>  <span class="n">gem</span> <span class="s1">&#39;foo&#39;</span>
</span><span class='line'><span class="k">end</span>
</span><span class='line'><span class="nb">require</span> <span class="s1">&#39;foo&#39;</span>
</span>

Enjoy!

Comments

Copyright © 2016 - Michael Kohl - Powered by Octopress