Class: I18nLinter::StringLine

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_linter/string_line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(coords, string) ⇒ StringLine

Returns a new instance of StringLine.



9
10
11
12
13
# File 'lib/i18n_linter/string_line.rb', line 9

def initialize(coords, string)
  @line_number = coords[0]
  @column_number = coords[1]
  @string = string
end

Instance Attribute Details

#column_numberObject (readonly)

Returns the value of attribute column_number.



6
7
8
# File 'lib/i18n_linter/string_line.rb', line 6

def column_number
  @column_number
end

#line_numberObject (readonly)

Returns the value of attribute line_number.



5
6
7
# File 'lib/i18n_linter/string_line.rb', line 5

def line_number
  @line_number
end

#stringObject (readonly)

Returns the value of attribute string.



7
8
9
# File 'lib/i18n_linter/string_line.rb', line 7

def string
  @string
end