Created
November 2, 2012 17:56
-
-
Save cadwallion/4003172 to your computer and use it in GitHub Desktop.
Terrible Use of Begin/Rescue for Platform Initializers
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
begin | |
platform_detection | |
rescue OSXFoundError | |
osx_specific_initializer | |
rescue WindowsFoundError | |
windows_specific_initializer | |
rescue UnixFoundError | |
unix_specific_initializer | |
ensure | |
universal_initializer | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment