class Gerrit::Input
Provides interface for collecting input from the user.
Public Class Methods
new(input)
click to toggle source
Creates an {Gerrit::Input} wrapping the given IO stream.
@param [IO] input the input stream
# File lib/gerrit/input.rb, line 7 def initialize(input) @input = input end
Public Instance Methods
get()
click to toggle source
Blocks until a line of input is returned from the input source.
@return [String, nil]
# File lib/gerrit/input.rb, line 14 def get @input.gets end