Class: PageTabs::Component

Inherits:
Lookbook::BaseComponent
  • Object
show all
Defined in:
app/components/lookbook/page_tabs/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(markdown: true, **html_attrs) ⇒ Component

Returns a new instance of Component.



10
11
12
13
# File 'app/components/lookbook/page_tabs/component.rb', line 10

def initialize(markdown: true, **html_attrs)
  @markdown = markdown
  super(**html_attrs)
end

Instance Method Details

#before_renderObject



15
16
17
# File 'app/components/lookbook/page_tabs/component.rb', line 15

def before_render
  tabs.size
end