Module: DesignSystem::BrandDerivable
- 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
#brand ⇒ Object
5 6 7 |
# File 'lib/design_system/brand_derivable.rb', line 5 def brand self.class.name.split('::')[1].underscore end |