Class: Minitest::Subjective::FileResult::Location
- Inherits:
-
Struct
- Object
- Struct
- Minitest::Subjective::FileResult::Location
- Defined in:
- lib/minitest/subjective/file_result/location.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#line ⇒ Object
Returns the value of attribute line.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
6 7 8 |
# File 'lib/minitest/subjective/file_result/location.rb', line 6 def column @column end |
#line ⇒ Object
Returns the value of attribute line
6 7 8 |
# File 'lib/minitest/subjective/file_result/location.rb', line 6 def line @line end |
Class Method Details
.from_array(args) ⇒ Object
7 8 9 |
# File 'lib/minitest/subjective/file_result/location.rb', line 7 def self.from_array(args) new(line: args[0], column: args[1]) end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/minitest/subjective/file_result/location.rb', line 11 def to_s [line, column].join(':') end |