Class: Configure::AcceptInput
- Inherits:
-
Object
- Object
- Configure::AcceptInput
- Defined in:
- lib/ngi/configure.rb
Overview
STDIN is separated into a class so that it can be extracted and tested
Class Method Summary collapse
Class Method Details
.str(type) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/ngi/configure.rb', line 23 def self.str(type) case type when :stripped $stdin.gets.strip end end |