Class: Kpop::Modal::HeaderComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
Katalyst::HtmlAttributes
Defined in:
app/components/kpop/modal/header_component.rb

Instance Method Summary collapse

Instance Method Details

#callObject



8
9
10
# File 'app/components/kpop/modal/header_component.rb', line 8

def call
  tag.div(content, **html_attributes)
end

#default_html_attributesObject



16
17
18
# File 'app/components/kpop/modal/header_component.rb', line 16

def default_html_attributes
  { class: "kpop-header" }
end

#inspectObject



12
13
14
# File 'app/components/kpop/modal/header_component.rb', line 12

def inspect
  "#<#{self.class.name}>"
end