Module: Phlex::Variants::ClassMethods
- Defined in:
- lib/phlex/variants.rb
Instance Method Summary collapse
Instance Method Details
#build_style(**variants) ⇒ Object
20 21 22 23 24 |
# File 'lib/phlex/variants.rb', line 20 def build_style(**variants) extra_classes = variants.delete(:extra_classes) [self::STYLE_BASE, build_variants_style(variants), extra_classes].flatten.compact.join(" ") end |
#style ⇒ Object
16 17 18 |
# File 'lib/phlex/variants.rb', line 16 def style(&) StyleBuilder.build(self, &) end |