Sha256: 6a79fca878d668f2d86a1c0cd11c287c056ef24a0fca4c77860a235c72ef8152
Contents?: true
Size: 532 Bytes
Versions: 228
Compression:
Stored size: 532 Bytes
Contents
class Thor module LineEditor class Basic attr_reader :prompt, :options def self.available? true end def initialize(prompt, options) @prompt = prompt @options = options end def readline $stdout.print(prompt) get_input end private def get_input if echo? $stdin.gets else $stdin.noecho(&:gets) end end def echo? options.fetch(:echo, true) end end end end
Version data entries
228 entries across 223 versions & 27 rubygems