Class: Minitest::Subjective::FileResult::Location

Inherits:
Struct
  • Object
show all
Defined in:
lib/minitest/subjective/file_result/location.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



6
7
8
# File 'lib/minitest/subjective/file_result/location.rb', line 6

def column
  @column
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of 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_sObject



11
12
13
# File 'lib/minitest/subjective/file_result/location.rb', line 11

def to_s
  [line, column].join(':')
end