Class: USingredientConverter
- Inherits:
-
Object
- Object
- USingredientConverter
- Defined in:
- lib/ingredient_converter.rb
Overview
:title:US to UK ingredient measurement converter
Name
USingredientConverter
Synopsis
US to UK ingredient measurement converter
Description
It is my final project for 2012 Fall Ruby language class, although it is still a work in progress as at 12.11.12
Todo
Upcoming Features
-
Ability to convert a stick of butter to not just ounces but to grams and tablespoons. Also planned are from other types of measure such as flour, sugar, treacle.
Known Issues
-
Nothing yet
References
-
Tim Myer
License
This code is provided under the terms of the MIT License. – This code is the proprietary intellectual property of its authors. It is not intended for publication. ++
Authors
Nicole Lewis
Instance Method Summary collapse
-
#convert(unitsfrom, unitsto) ⇒ Object
-
The method “convert” sole reponsibility is to convert the units-from parameter into the units-to parameter.
-
Instance Method Details
#convert(unitsfrom, unitsto) ⇒ Object
-
The method “convert” sole reponsibility is to convert the units-from parameter into the units-to parameter.
-
It will always return “4 ounces” as it is a stub as my face melted off attempting to get a hash inside a hash value by the deadline
-
I will make this more useful shortly
30 31 32 |
# File 'lib/ingredient_converter.rb', line 30 def convert(unitsfrom,unitsto) return '4 ounces' end |