Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

Ruby

CSYS2853

3 credits

Labs

Temperature Converter

Lab

100 points

Requirements

All tests pass (in the spirt of the test)75
Short convert methods are handled with respond_to? and method_missing25
Total100 pts

Objective

Practice with Testing and Dynamic Class Behaviors

Instructions

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.

Extras