Class: Groonga::Client::CommandLine::GroongaClient::BareREPL
- Inherits:
-
Object
- Object
- Groonga::Client::CommandLine::GroongaClient::BareREPL
- Defined in:
- lib/groonga/client/command-line/groonga-client.rb
Instance Method Summary collapse
-
#initialize(runner) ⇒ BareREPL
constructor
A new instance of BareREPL.
- #run ⇒ Object
Constructor Details
#initialize(runner) ⇒ BareREPL
Returns a new instance of BareREPL.
363 364 365 |
# File 'lib/groonga/client/command-line/groonga-client.rb', line 363 def initialize(runner) @runner = runner end |
Instance Method Details
#run ⇒ Object
367 368 369 370 371 372 373 374 375 |
# File 'lib/groonga/client/command-line/groonga-client.rb', line 367 def run loop do print("> ") $stdout.flush line = gets break if line.nil? @runner << line end end |