Class: ASAutotest::Location
- Inherits:
-
Object
- Object
- ASAutotest::Location
- Extended by:
- Bracketable
- Defined in:
- lib/asautotest/problematic-file.rb
Instance Attribute Summary collapse
-
#column_number ⇒ Object
readonly
Returns the value of attribute column_number.
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
-
#source_line ⇒ Object
readonly
Returns the value of attribute source_line.
Instance Method Summary collapse
-
#initialize(line_number, column_number, source_line) ⇒ Location
constructor
A new instance of Location.
- #sort_key ⇒ Object
Methods included from Bracketable
Constructor Details
#initialize(line_number, column_number, source_line) ⇒ Location
Returns a new instance of Location.
105 106 107 108 109 |
# File 'lib/asautotest/problematic-file.rb', line 105 def initialize(line_number, column_number, source_line) @line_number = line_number @column_number = column_number @source_line = source_line end |
Instance Attribute Details
#column_number ⇒ Object (readonly)
Returns the value of attribute column_number.
103 104 105 |
# File 'lib/asautotest/problematic-file.rb', line 103 def column_number @column_number end |
#line_number ⇒ Object (readonly)
Returns the value of attribute line_number.
103 104 105 |
# File 'lib/asautotest/problematic-file.rb', line 103 def line_number @line_number end |
#source_line ⇒ Object (readonly)
Returns the value of attribute source_line.
103 104 105 |
# File 'lib/asautotest/problematic-file.rb', line 103 def source_line @source_line end |
Instance Method Details
#sort_key ⇒ Object
111 112 113 |
# File 'lib/asautotest/problematic-file.rb', line 111 def sort_key [line_number, column_number] end |