Created
October 5, 2015 22:02
-
-
Save eternal44/bced29c02ead15cb2e0f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### | |
# PROXY # | |
######### | |
def fahrenheit_to_kelvin(value) | |
(value + 459.67) * 5 / 9 | |
end | |
def kelvin_to_celcius(value) | |
value -= 273.15 | |
end | |
########### | |
# REQUEST # | |
########### | |
def fahrenheit_to_celcius(value) | |
in_kelvin = fahrenheit_to_kelvin(value) | |
kelvin_to_celcius(in_kelvin) | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to keep the original API and not have to pass an arguments to each instance method.