Class: Cxxproject::Printer

Inherits:
Object
  • Object
show all
Defined in:
lib/cxxproject/utils/printer.rb

Constant Summary collapse

@@cf =
ColorizingFormatter.new

Class Method Summary collapse

Class Method Details

.printAdditionalInfo(str) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/cxxproject/utils/printer.rb', line 16

def self.printAdditionalInfo(str)
  if @@cf.enabled?
    puts @@cf.printAdditionalInfo(str)
  else
    puts str
  end
end

.printError(str) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/cxxproject/utils/printer.rb', line 32

def self.printError(str)
  if @@cf.enabled?
    puts @@cf.printError(str)
  else
    puts str
  end
end

.printInfo(str) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/cxxproject/utils/printer.rb', line 8

def self.printInfo(str)
  if @@cf.enabled?
    puts @@cf.printInfo(str)
  else
    puts str
  end
end

.printSuccess(str) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/cxxproject/utils/printer.rb', line 40

def self.printSuccess(str)
  if @@cf.enabled?
    puts @@cf.printSuccess(str)
  else
    puts str
  end
end

.printWarning(str) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/cxxproject/utils/printer.rb', line 24

def self.printWarning(str)
  if @@cf.enabled?
    puts @@cf.printWarning(str)
  else
    puts str
  end
end