Class: Torkify::Log::TestError

Inherits:
Object
  • Object
show all
Defined in:
lib/torkify/log/test_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename, lnum, text, type) ⇒ TestError

Returns a new instance of TestError.



5
6
7
8
9
10
# File 'lib/torkify/log/test_error.rb', line 5

def initialize(filename, lnum, text, type)
  @filename = filename
  @lnum     = lnum
  @text     = text
  @type     = type
end

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



3
4
5
# File 'lib/torkify/log/test_error.rb', line 3

def filename
  @filename
end

#lnumObject

Returns the value of attribute lnum.



3
4
5
# File 'lib/torkify/log/test_error.rb', line 3

def lnum
  @lnum
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/torkify/log/test_error.rb', line 3

def text
  @text
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/torkify/log/test_error.rb', line 3

def type
  @type
end

Instance Method Details

#clean_textObject



12
13
14
# File 'lib/torkify/log/test_error.rb', line 12

def clean_text
  text.strip
end