Sha256: c88ab76c86e3dd478de8bdd038246320aa55288b1488650f9303d2036cc3fb22

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

require 'pathname'
require 'term/ansicolor'

module RedGreen
  extend self

  attr_accessor :colour

  def visual
    Term::ANSIColor.send(colour || :green) { "="*78 }
  end
end

if    defined?(MiniTest::Unit::TestCase) then require 'redgreen/minitest'
elsif defined?(Test::Unit::TestCase)     then require 'redgreen/testunit'
elsif defined?(Nanotest)                 then require 'redgreen/nanotest'
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
social_url_stats-0.0.1 vendor/ruby/1.9.1/gems/mynyml-redgreen-0.7.1/lib/redgreen.rb
mynyml-redgreen-0.7.1 lib/redgreen.rb