This article has multiple issues. Please help to improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
RubyChem (pronounced /ˈruːˈbeːˈkːˈem/) is a freely available (MIT License) program, written in Ruby, supporting the calculation of moles, balancing chemical equations and valence orbital calculations.
The Ruby official distribution also includes "
irb" (Interactive Ruby Shell), an interactive command-line interpreter which can be used to test code quickly. The following code fragment represents a sample session using
$ irb irb(main):001:0> require 'rubychem' irb(main):002:0> RubyChem::Equation.new("C12H26+O2=CO2+H2O").balance => 2C12H26 + 37O2 = 24C1O2 + 26H2O1"