Class: I18nLinter::StringLine
- Inherits:
-
Object
- Object
- I18nLinter::StringLine
- Defined in:
- lib/i18n_linter/string_line.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.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(coords, string) ⇒ StringLine
constructor
A new instance of StringLine.
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_number ⇒ Object (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_number ⇒ Object (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 |
#string ⇒ Object (readonly)
Returns the value of attribute string.
7 8 9 |
# File 'lib/i18n_linter/string_line.rb', line 7 def string @string end |