Module: Alveole::Concerns::Bem
- Extended by:
- ActiveSupport::Concern
- Included in:
- ButtonComponent, InputComponent
- Defined in:
- lib/alveole/concerns/bem.rb
Instance Method Summary collapse
Instance Method Details
#modifiers=(values) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/alveole/concerns/bem.rb', line 11 def modifiers=(values) @bem_classes ||= [] @modifiers = values & self.class::MODIFIERS @modifiers.each do |modifier| @bem_classes << "#{self.class::COMPONENT_NAME}--#{modifier.to_s.dasherize}" end end |