Class: ASAutotest::Location

Inherits:
Object
  • Object
show all
Extended by:
Bracketable
Defined in:
lib/asautotest/problematic-file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numberObject (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_numberObject (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_lineObject (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_keyObject



111
112
113
# File 'lib/asautotest/problematic-file.rb', line 111

def sort_key
  [line_number, column_number]
end