Class: PageTabs::Component
- Inherits:
-
Lookbook::BaseComponent
- Object
- Lookbook::BaseComponent
- PageTabs::Component
- Defined in:
- app/components/lookbook/page_tabs/component.rb
Instance Method Summary collapse
- #before_render ⇒ Object
-
#initialize(markdown: true, **html_attrs) ⇒ Component
constructor
A new instance of Component.
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_render ⇒ Object
15 16 17 |
# File 'app/components/lookbook/page_tabs/component.rb', line 15 def before_render tabs.size end |