Skip to content

Instantly share code, notes, and snippets.

@eternal44
Created October 5, 2015 22:02
Show Gist options
  • Save eternal44/bced29c02ead15cb2e0f to your computer and use it in GitHub Desktop.
Save eternal44/bced29c02ead15cb2e0f to your computer and use it in GitHub Desktop.
#########
# 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
@eternal44
Copy link
Author

I want to keep the original API and not have to pass an arguments to each instance method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment