Ruby
3 credits
All tests pass (in the spirt of the test) | 75 |
Short convert methods are handled with respond_to? and method_missing | 25 |
Total | 100 pts |
Practice with Testing and Dynamic Class Behaviors
Write a class called Temp that will be able to convert temperatures between Celsius, Fahrenheit, and Kelvin. Your class is complete when it can pass all of the unit tests in the attached file.
In the tests where it refers to short_convert_methods, those methods should not be implemented as traditional methods in the class. Instead, they should be handled by responds_to? and method_missing methods.