Skip to content

Instantly share code, notes, and snippets.

@apeiros
Created June 29, 2012 22:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apeiros/3021140 to your computer and use it in GitHub Desktop.
Save apeiros/3021140 to your computer and use it in GitHub Desktop.
Require files and provide an interface to check what's available
Moved to https://github.com/apeiros/available
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