Class: ViewComponent::ScopedStyles::Stylist

Inherits:
Object
  • Object
show all
Defined in:
lib/view_component/scoped_styles/stylist.rb,
lib/view_component/scoped_styles/stylist/writer.rb

Defined Under Namespace

Classes: Writer

Class Method Summary collapse

Class Method Details

.register(component_class) ⇒ Object



8
9
10
11
12
# File 'lib/view_component/scoped_styles/stylist.rb', line 8

def self.register(component_class)
  return if unstyled?(component_class)

  Writer.print(component_class)
end