Sha256: cd04e32b661a0642f69a2272e7b5a6f024960c2a5b5b8ddbd8a96acb2ff0188c
Contents?: true
Size: 310 Bytes
Versions: 157
Compression:
Stored size: 310 Bytes
Contents
module Guard # Simple interactor that that reads user # input from standard input. # class SimpleInteractor < Interactor # Read a line from stdin with Readline. # def read_line while line = $stdin.gets process_input(line.gsub(/^\W*/, '').chomp) end end end end
Version data entries
157 entries across 65 versions & 3 rubygems