Sha256: 5c04748457b989b72618175853f3eb5caf7cde0afa45bfa5bee3a9ee83fb5cad

Contents?: true

Size: 258 Bytes

Versions: 3

Compression:

Stored size: 258 Bytes

Contents

require 'ansi/code'

class ::String
  #
  def ansi(*codes)
    ANSI::Code.ansi(self, *codes)
  end

  #
  def ansi!(*codes)
    replace(ansi(*codes))
  end

  #
  def unansi
    ANSI::Code.unansi(self)
  end

  #
  def unansi!
    replace(unansi)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ansi-1.4.1 lib/ansi/core.rb
ansi-1.4.0 lib/ansi/core.rb
ansi-1.3.0 lib/ansi/core.rb