Created
August 1, 2016 06:38
-
-
Save anonymous/dce62915e18664e313062dc77f1dfde8 to your computer and use it in GitHub Desktop.
This file contains 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
def autodetect(keyword) | |
send(keyword.to_sym) | |
rescue NoMethodError | |
raise "incorrect config option: #{keyword}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment