convert between volumes and weight for typcal condiments.
Add this line to your application's Gemfile:
gem 'shioconv'
And then execute:
$ bundle
Or install it yourself as:
$ gem install shioconv
- convert amount of condiments between units
salt = Shioconv.measure(:salt, 1, :tbsp)
salt.to_cc # => 15.0
salt.to_g # => 18.0
- show all condiments and units
Shioconv::Condiment.list # => returns array of string
Shioconv::Unit.list # => returns array of string