Class: Marquetapage::Runner
- Inherits:
-
Object
- Object
- Marquetapage::Runner
- Defined in:
- lib/marquetapage/runner.rb
Overview
Execute sql command to sqlite
Class Method Summary collapse
-
.run(args) ⇒ Integer
Execute query and output as json the result.
Instance Method Summary collapse
-
#run(args) ⇒ Integer
Execute query and output as json the result.
Class Method Details
.run(args) ⇒ Integer
Execute query and output as json the result
11 12 13 |
# File 'lib/marquetapage/runner.rb', line 11 def self.run(args) new.run(args) end |
Instance Method Details
#run(args) ⇒ Integer
Execute query and output as json the result
19 20 21 22 23 24 25 |
# File 'lib/marquetapage/runner.rb', line 19 def run(args) raise ArgumentError unless args usage if args.empty? trap_interrupt @tag_name = args.first output_bookmarks end |