Sha256: 6927e1e0e5be46110747e3c58fb0ec284ceb9154618c2fd8d7daf37204081eda

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

require 'ansi/diff'

module AE

  # Default ANSI mode is "on".
  @ansi = true

  # ANSI mode.
  #
  # @return [Boolean] ANSI mode.
  def self.ansi?
    @ansi
  end

  # To turn of ANSI colorized error messages off, set 
  # ansi to +false+ in your test helper.
  #
  # @example
  #   AE.ansi = false
  #
  def self.ansi=(boolean)
    @ansi = boolean
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ae-1.8.2 lib/ae/ansi.rb
ae-1.8.1 lib/ae/ansi.rb