Class: I18nContextGenerator::ContextSource
- Inherits:
-
Data
- Object
- Data
- I18nContextGenerator::ContextSource
- Defined in:
- lib/i18n_context_generator/supplemental_context.rb
Overview
Immutable, named evidence supplied in addition to translations and source usages.
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(kind:, name:, content:) ⇒ ContextSource
constructor
A new instance of ContextSource.
Constructor Details
#initialize(kind:, name:, content:) ⇒ ContextSource
Returns a new instance of ContextSource.
6 7 8 9 10 11 12 |
# File 'lib/i18n_context_generator/supplemental_context.rb', line 6 def initialize(kind:, name:, content:) super( kind: kind.to_sym, name: name.dup.freeze, content: content.dup.freeze ) end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
5 6 7 |
# File 'lib/i18n_context_generator/supplemental_context.rb', line 5 def content @content end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
5 6 7 |
# File 'lib/i18n_context_generator/supplemental_context.rb', line 5 def kind @kind end |
#name ⇒ Object (readonly)
Returns the value of attribute name
5 6 7 |
# File 'lib/i18n_context_generator/supplemental_context.rb', line 5 def name @name end |