Shioconv
convert between cubic contents and weight for typcal seasonings.
Installation
Add this line to your application's Gemfile:
gem 'shioconv'
And then execute:
$ bundle
Or install it yourself as:
$ gem install shioconv
Usage
- 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
Contributing
- Fork it ( https://github.com/kwappa/shioconv/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request