Rupee is a Ruby gem that I've written for financial functions. It allows you to price options and pull a great deal of information on securities from online sources, all organized around Ruby's object-oriented model.

Also, due to the speed considerations when dealing with models, the more mathematical parts of the extension are written in C for maximum efficiency. Thus, you can create a call option like so: