Sha256: 8f1148161385db0b5c28d3c5b81e309d04331b6c54cb9010fabd8877ef803934
Contents?: true
Size: 391 Bytes
Versions: 4
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true class IO::Line require "io/console" require_relative "line/multiple" VERSION = "0.1.0" attr_reader :io def initialize(io) @io = io end def print(*strs) tap { @io.print(strs.join.gsub($/, "")) } end def end tap { @io.print($/) } end def rewind tap do @io.erase_line(2) @io.goto_column(0) end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
quran-audio-0.5.1 | bundle/io-line.rb/lib/io/line.rb |
quran-audio-0.5.0 | bundle/io-line.rb/lib/io/line.rb |
quran-audio-0.4.2 | bundle/io-line.rb/lib/io/line.rb |
io-line.rb-0.1.0 | lib/io/line.rb |