lib/tty/reader/history.rb
def replace(line)
        return if @index.to_i >= size

        @history[index] = line.dup
      end
# Replace the current line with a new one
#
# @param [String] line
#   the new line to replace with
#
# @api public
Replace the current line with a new one
Replace the current line with a new one
def replace(line)
        return if @index.to_i >= size
        @history[index] = line.dup
      end
def replace ( line ) return if @index . to_i >= size @history [ index ] = line . dup end
Replace the current line with a new one
Replace the current line with a new one
line
line the new line to replace with
line the new line to replace with
api
None