Class: JasmineParser::Announcer

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine-parser/announcer.rb

Class Method Summary collapse

Class Method Details

.error(message) ⇒ Object



47
48
49
50
51
52
# File 'lib/jasmine-parser/announcer.rb', line 47

def self.error(message)
  @error_count ||= 0
  @error_count = @error_count + 1
  return nil unless Config.logging.include? :error
  puts "[ERROR - #{@error_count}] #{message}"
end

.info(message) ⇒ Object



35
36
37
38
# File 'lib/jasmine-parser/announcer.rb', line 35

def self.info(message)
  return nil unless Config.logging.include? :info
  puts "[INFO] #{message}"
end

.warning(message) ⇒ Object



40
41
42
43
44
45
# File 'lib/jasmine-parser/announcer.rb', line 40

def self.warning(message)
  @warning_count ||= 0
  @warning_count = @warning_count + 1
  return nil unless Config.logging.include? :warning
  puts "[WARNING - #{@warning_count}] #{message}"
end