File: ansi.rb

package info (click to toggle)
ruby-ae 1.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 208 kB
  • sloc: ruby: 936; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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