Class: Torkify::Log::TestError
- Inherits:
-
Object
- Object
- Torkify::Log::TestError
- Defined in:
- lib/torkify/log/test_error.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#lnum ⇒ Object
Returns the value of attribute lnum.
-
#text ⇒ Object
Returns the value of attribute text.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #clean_text ⇒ Object
-
#initialize(filename, lnum, text, type) ⇒ TestError
constructor
A new instance of TestError.
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
#filename ⇒ Object
Returns the value of attribute filename.
3 4 5 |
# File 'lib/torkify/log/test_error.rb', line 3 def filename @filename end |
#lnum ⇒ Object
Returns the value of attribute lnum.
3 4 5 |
# File 'lib/torkify/log/test_error.rb', line 3 def lnum @lnum end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/torkify/log/test_error.rb', line 3 def text @text end |
#type ⇒ Object
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_text ⇒ Object
12 13 14 |
# File 'lib/torkify/log/test_error.rb', line 12 def clean_text text.strip end |