Class: Gerrit::Input
- Inherits:
-
Object
- Object
- Gerrit::Input
- Defined in:
- lib/gerrit/input.rb
Overview
Provides interface for collecting input from the user.
Instance Method Summary collapse
-
#get ⇒ String?
Blocks until a line of input is returned from the input source.
-
#initialize(input) ⇒ Input
constructor
Creates an Input wrapping the given IO stream.
Constructor Details
#initialize(input) ⇒ Input
Creates an Gerrit::Input wrapping the given IO stream.
7 8 9 |
# File 'lib/gerrit/input.rb', line 7 def initialize(input) @input = input end |
Instance Method Details
#get ⇒ String?
Blocks until a line of input is returned from the input source.
14 15 16 |
# File 'lib/gerrit/input.rb', line 14 def get @input.gets end |