Sha256: 41eec46a2a34ee7450bb2166ffdcecc884d05d98316387ffd3980a2e0768d108
Contents?: true
Size: 534 Bytes
Versions: 49
Compression:
Stored size: 534 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
49 entries across 49 versions & 2 rubygems