Class: PGHintLine

Inherits:
PGLogLine show all
Defined in:
lib/pqa.rb

Constant Summary

Constants inherited from PGLogLine

PGLogLine::DEBUG

Instance Attribute Summary

Attributes inherited from PGLogLine

#cmd_no, #connection_id, #duration, #ignore, #line_no, #text

Instance Method Summary collapse

Methods inherited from PGLogLine

#dump, #initialize, #parse_duration, #to_s

Constructor Details

This class inherits a constructor from PGLogLine

Instance Method Details

#append_to(errors) ⇒ Object



321
322
323
324
325
326
327
328
# File 'lib/pqa.rb', line 321

def append_to(errors)
  if errors.last
    errors.last.append_hint(@text)
  else
    $stderr.puts "Hint for no previous error"
  end
  return nil
end