# Sharing ruby code

**URL:** <https://www.ruby-forum.com/t/sharing-ruby-code/154195>\
**Category:** Ruby\
**Created:** [November 26, 2008, 10:40am UTC](https://www.ruby-forum.com/t/sharing-ruby-code/154195 "2008-11-26T10:40:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cibercitizen1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/4da419/32.png) [@cibercitizen1](https://www.ruby-forum.com/u/cibercitizen1)\
**Post date:** [November 26, 2008, 10:40am UTC](https://www.ruby-forum.com/t/sharing-ruby-code/154195/1 "2008-11-26T10:40:26Z")

</div>

I’ve developed a simple plotter of math functions.  
What is a good place to share the code?

Just for the curious it is to be used this way

p = Plotter.new {  
leftX -2.0  
rightX 2.0  
inf 0.0  
sup 2.0\*Math::PI  
funClass Circum  
}

p.show

where

class Circum \< Function  
def self.vx §  
Math.sin§  
end

def self.vy §  
Math.cos§  
end  
end

---

<div class="post-metadata">

**Author:** ![cibercitizen1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/4da419/32.png) [@cibercitizen1](https://www.ruby-forum.com/u/cibercitizen1)\
**Post date:** [November 26, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/sharing-ruby-code/154195/2 "2008-11-26T14:44:10Z")

</div>

cibercitizen1 wrote:

> I’ve developed a simple plotter of math functions.  
> What is a good place to share the code?

If you can package it as a gem, rubyforge is the best place to share it.  
If you’d like to get some feedback and hack on the code with other  
people, github is quite popular for that sort of thing.

Packaging as a gem : [#135 Making a Gem - RailsCasts](http://railscasts.com/episodes/135-making-a-gem)  
(not the ‘official’ documentation, but a very useful tutorial)  
Rubyforge : [https://github.com/](https://github.com/)  
Github : [http://rubyforge.org/](http://rubyforge.org/)

Hope this helps,

Chris
