Skip to content

Instantly share code, notes, and snippets.

Created August 1, 2016 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/dce62915e18664e313062dc77f1dfde8 to your computer and use it in GitHub Desktop.
Save anonymous/dce62915e18664e313062dc77f1dfde8 to your computer and use it in GitHub Desktop.
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