Friday, July 29, 2011

Units of measure libraries for ruby

alchemist and vanunits, these are two ruby libraries to manipulate "Units of measure". Most impressive character of both is these can write "Units of measure" codes in rubyish method chain style.

alchemist

Pros

  • Light

cons

  • Cannot calculate devision of units
  • Not ready for String#inspect to show units

vanunits

Pros

  • Can calculate devision of units
  • Ready for String#inspect to show units

cons

  • Too heavy, oftenly deep stack error occurs

No comments:

Post a Comment