# Crating a Gem with native code

**URL:** <https://www.ruby-forum.com/t/crating-a-gem-with-native-code/132055>\
**Category:** Rails\
**Created:** [March 16, 2008, 4:13am UTC](https://www.ruby-forum.com/t/crating-a-gem-with-native-code/132055 "2008-03-16T04:13:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elemental](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6de8d8/32.png) [@elemental](https://www.ruby-forum.com/u/elemental)\
**Post date:** [March 16, 2008, 4:13am UTC](https://www.ruby-forum.com/t/crating-a-gem-with-native-code/132055/1 "2008-03-16T04:13:27Z")

</div>

Hi all,  
I need to embed the FireFox engine in a pet project of mine I’m  
working  
on. I have a couple of questions.

1. Does such a Gem already exist? There’s no point in re-inventing  
the wheel if it does.
2. If not, where can I find a good example of writing a gem with  
embedded code? I’ve looked online, and all the tutorials I’ve found  
use  
only ruby code. I was thinking that the MySQL gem with native  
drivers might  
be a good example, but I’d like to look at a couple more before I  
proceed.

Thanks,  
Todd
