Class: I18nContextGenerator::Parsers::TranslationEntry
- Inherits:
-
Data
- Object
- Data
- I18nContextGenerator::Parsers::TranslationEntry
- Defined in:
- lib/i18n_context_generator/parsers/base.rb
Overview
Represents a single translation entry
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#source_file ⇒ Object
readonly
Returns the value of attribute source_file.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(key:, text:, source_file:, metadata: {}) ⇒ TranslationEntry
constructor
A new instance of TranslationEntry.
Constructor Details
#initialize(key:, text:, source_file:, metadata: {}) ⇒ TranslationEntry
Returns a new instance of TranslationEntry.
9 10 11 |
# File 'lib/i18n_context_generator/parsers/base.rb', line 9 def initialize(key:, text:, source_file:, metadata: {}) super end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key
8 9 10 |
# File 'lib/i18n_context_generator/parsers/base.rb', line 8 def key @key end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
8 9 10 |
# File 'lib/i18n_context_generator/parsers/base.rb', line 8 def @metadata end |
#source_file ⇒ Object (readonly)
Returns the value of attribute source_file
8 9 10 |
# File 'lib/i18n_context_generator/parsers/base.rb', line 8 def source_file @source_file end |
#text ⇒ Object (readonly)
Returns the value of attribute text
8 9 10 |
# File 'lib/i18n_context_generator/parsers/base.rb', line 8 def text @text end |