Module: DesignSystem::BrandDerivable

Included in:
BaseComponent, Generic::Builders::Base, Generic::Builders::PaginationRenderer
Defined in:
lib/design_system/brand_derivable.rb

Overview

Mixin that derives the design-system brand name from the including class's second-level namespace (e.g. DesignSystem::Govuk::PanelComponent'govuk').

Instance Method Summary collapse

Instance Method Details

#brandObject



5
6
7
# File 'lib/design_system/brand_derivable.rb', line 5

def brand
  self.class.name.split('::')[1].underscore
end