Class: GOVUKDesignSystemFormBuilder::Traits::DataAttributesI18n::I18nAttr

Inherits:
Struct
  • Object
show all
Defined in:
lib/govuk_design_system_formbuilder/traits/data_attributes_i18n.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#config_keyObject

Returns the value of attribute config_key

Returns:

  • (Object)

    the current value of 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_keyObject

Returns the value of attribute data_attribute_key

Returns:

  • (Object)

    the current value of 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

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



4
5
6
# File 'lib/govuk_design_system_formbuilder/traits/data_attributes_i18n.rb', line 4

def text
  @text
end

Instance Method Details

#defaultObject



5
6
7
# File 'lib/govuk_design_system_formbuilder/traits/data_attributes_i18n.rb', line 5

def default
  GOVUKDesignSystemFormBuilder.config[config_key]
end