Class: DTest::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/dtest/report.rb

Class Method Summary collapse

Class Method Details

.color_enabled=(t) ⇒ Object



96
97
98
# File 'lib/dtest/report.rb', line 96

def self.color_enabled=(t)
  @color_enabled = t
end

.left(s, text = '') ⇒ Object



109
110
111
# File 'lib/dtest/report.rb', line 109

def self.left(s, text = '')
  puts "[#{s_left(s)}] #{text}"
end

.right(s, text = '') ⇒ Object



113
114
115
# File 'lib/dtest/report.rb', line 113

def self.right(s, text = '')
  puts "[#{s_right(s)}] #{text}"
end

.split(count = 30) ⇒ Object



100
101
102
103
# File 'lib/dtest/report.rb', line 100

def self.split(count = 30)
  puts ''
  puts '-' * count
end

.tag(s, text = '') ⇒ Object



105
106
107
# File 'lib/dtest/report.rb', line 105

def self.tag(s, text = '')
  puts "[#{s_center(s)}] #{text}"
end