Class: Groonga::Client::CommandLine::Runner
- Inherits:
-
Object
- Object
- Groonga::Client::CommandLine::Runner
- Defined in:
- lib/groonga/client/command-line/runner.rb
Direct Known Subclasses
GroongaClientIndexCheck::Checker, GroongaClientIndexRecreate::Recreator
Instance Method Summary collapse
-
#initialize(client) ⇒ Runner
constructor
A new instance of Runner.
- #run(&block) ⇒ Object
Constructor Details
#initialize(client) ⇒ Runner
Returns a new instance of Runner.
21 22 23 |
# File 'lib/groonga/client/command-line/runner.rb', line 21 def initialize(client) @client = client end |
Instance Method Details
#run(&block) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/groonga/client/command-line/runner.rb', line 25 def run(&block) catch do |tag| @abort_tag = tag run_internal(&block) end end |