Class: Zeusd::Log::Line::Error

Inherits:
Base
  • Object
show all
Defined in:
lib/zeusd/log/line/error.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#ansi_color, #ansi_color_of, #connecting?, #crashed?, #done?, #loading?, #ready?, #running?, #status?, #status_substring, #waiting?

Class Method Details

.matches_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/zeusd/log/line/error.rb', line 8

def self.matches_line?(line)
  !!line[0..5]["\e[31m"]
end

Instance Method Details

#idObject



12
13
14
# File 'lib/zeusd/log/line/error.rb', line 12

def id
  message
end