Module: RDF::Raptor::CLI
- Defined in:
- lib/rdf/raptor/cli.rb
Overview
A command-line interface to Raptor’s rapper
utility.
Defined Under Namespace
Constant Summary collapse
- ENGINE =
:cli
Instance Method Summary collapse
-
#version ⇒ String
Returns the installed
rapper
version number, ornil
ifrapper
is not available.
Instance Method Details
#version ⇒ String
Returns the installed rapper
version number, or nil
if rapper
is not available.
17 18 19 20 21 |
# File 'lib/rdf/raptor/cli.rb', line 17 def version if `#{RAPPER} --version 2>/dev/null` =~ /^(\d+)\.(\d+)\.(\d+)/ [$1, $2, $3].join('.') end end |