Method: Lookbook::TagComponent#call

Defined in:
app/components/lookbook/tag_component.rb

#callObject



14
15
16
17
18
19
# File 'app/components/lookbook/tag_component.rb', line 14

def call
  @html_attrs[:class] = class_names(@html_attrs[:class])
  tag.public_send(@tag.to_sym, **@html_attrs) do
    content
  end
end