Class: I18nChecker::Locale::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_checker/locale/text.rb

Overview

Translation text referenced from the file

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file:, text:, line:, column:) ⇒ Text

Create translated text

Parameters:

  • file (String)

    File referring to translated text

  • text (String)

    Translation text key

  • line (Fixnum)

    Line number of file

  • column (Fixnum)

    Column number of file



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

#columnFixnum (readonly)

Column number of file

Returns:

  • (Fixnum)

    the current value of column



9
10
11
# File 'lib/i18n_checker/locale/text.rb', line 9

def column
  @column
end

#fileString (readonly)

File referring to translated text

Returns:

  • (String)

    the current value of file



9
10
11
# File 'lib/i18n_checker/locale/text.rb', line 9

def file
  @file
end

#lineFixnum (readonly)

Line number of file

Returns:

  • (Fixnum)

    the current value of line



9
10
11
# File 'lib/i18n_checker/locale/text.rb', line 9

def line
  @line
end

#textString (readonly)

Translation text key

Returns:

  • (String)

    the current value of text



9
10
11
# File 'lib/i18n_checker/locale/text.rb', line 9

def text
  @text
end