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

  1. Fork it ( https://github.com/kwappa/shioconv/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request