Sha256: 7c23e875613ef2fc0429d79e6f17a25451d45079945a19770db685caa5e1772a
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
# frozen_string_literal: true module Vlcraptor class Console LENGTH = 120 def initialize @first = true end def change(line) print "\b" * LENGTH unless @first @first = false print line[0...LENGTH].ljust LENGTH end def replace(line) print "\b" * LENGTH unless @first @first = true puts line end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vlcraptor-0.2.0 | lib/vlcraptor/console.rb |