Class: I18nChecker::Locale::Text
- Inherits:
-
Object
- Object
- I18nChecker::Locale::Text
- Defined in:
- lib/i18n_checker/locale/text.rb
Overview
Translation text referenced from the file
Instance Attribute Summary collapse
-
#column ⇒ Fixnum
readonly
Column number of file.
-
#file ⇒ String
readonly
File referring to translated text.
-
#line ⇒ Fixnum
readonly
Line number of file.
-
#text ⇒ String
readonly
Translation text key.
Instance Method Summary collapse
-
#initialize(file:, text:, line:, column:) ⇒ Text
constructor
Create translated text.
Constructor Details
#initialize(file:, text:, line:, column:) ⇒ Text
Create translated text
18 19 20 21 22 23 |
# File 'lib/i18n_checker/locale/text.rb', line 18 def initialize(file:, text:, line:, column:) @file = file @text = text @line = line @column = column end |
Instance Attribute Details
#column ⇒ Fixnum (readonly)
Column number of file
9 10 11 |
# File 'lib/i18n_checker/locale/text.rb', line 9 def column @column end |
#file ⇒ String (readonly)
File referring to translated text
9 10 11 |
# File 'lib/i18n_checker/locale/text.rb', line 9 def file @file end |
#line ⇒ Fixnum (readonly)
Line number of file
9 10 11 |
# File 'lib/i18n_checker/locale/text.rb', line 9 def line @line end |
#text ⇒ String (readonly)
Translation text key
9 10 11 |
# File 'lib/i18n_checker/locale/text.rb', line 9 def text @text end |