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.
336 337 338 |
# File 'lib/groonga/client/command-line/groonga-client.rb', line 336 def initialize(runner) @runner = runner end |
Instance Method Details
#run ⇒ Object
340 341 342 343 344 345 346 347 348 |
# File 'lib/groonga/client/command-line/groonga-client.rb', line 340 def run loop do print("> ") $stdout.flush line = gets break if line.nil? @runner << line end end |