Skip to content

Instantly share code, notes, and snippets.

@mfojtik
Created November 9, 2011 17:17
Show Gist options
  • Save mfojtik/1352148 to your computer and use it in GitHub Desktop.
Save mfojtik/1352148 to your computer and use it in GitHub Desktop.
def check_capability(backend)
if !has_capability?(backend)
raise Failure.new(capability, "#{capability} capability not supported by backend #{backend.class.name}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment