Class: GOVUKDesignSystemFormBuilder::Traits::DataAttributesI18n::I18nAttr
- Inherits:
-
Struct
- Object
- Struct
- GOVUKDesignSystemFormBuilder::Traits::DataAttributesI18n::I18nAttr
- Defined in:
- lib/govuk_design_system_formbuilder/traits/data_attributes_i18n.rb
Instance Attribute Summary collapse
-
#config_key ⇒ Object
Returns the value of attribute config_key.
-
#data_attribute_key ⇒ Object
Returns the value of attribute data_attribute_key.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#config_key ⇒ Object
Returns the value of attribute config_key
4 5 6 |
# File 'lib/govuk_design_system_formbuilder/traits/data_attributes_i18n.rb', line 4 def config_key @config_key end |
#data_attribute_key ⇒ Object
Returns the value of attribute data_attribute_key
4 5 6 |
# File 'lib/govuk_design_system_formbuilder/traits/data_attributes_i18n.rb', line 4 def data_attribute_key @data_attribute_key end |
#text ⇒ Object
Returns the value of attribute text
4 5 6 |
# File 'lib/govuk_design_system_formbuilder/traits/data_attributes_i18n.rb', line 4 def text @text end |
Instance Method Details
#default ⇒ Object
5 6 7 |
# File 'lib/govuk_design_system_formbuilder/traits/data_attributes_i18n.rb', line 5 def default GOVUKDesignSystemFormBuilder.config[config_key] end |