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.
185 186 187 |
# File 'lib/groonga/client/command-line/groonga-client.rb', line 185 def initialize(runner) @runner = runner end |
Instance Method Details
#run ⇒ Object
189 190 191 192 193 194 195 196 197 |
# File 'lib/groonga/client/command-line/groonga-client.rb', line 189 def run loop do print("> ") $stdout.flush line = gets break if line.nil? @runner << line end end |