Created
June 29, 2012 22:38
-
-
Save apeiros/3021140 to your computer and use it in GitHub Desktop.
Require files and provide an interface to check what's available
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
Moved to https://github.com/apeiros/available |
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
Capa = Capabilities.new( | |
:nokogiri, | |
:haml, | |
sqlite: 'sqlite3' | |
) | |
Capa.nokogiri? # => true - assuming nokogiri is installed | |
Capa.haml? # => false - assuming haml is not installed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment