Class: Header::Component

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

Instance Method Summary collapse

Constructor Details

#initialize(debug_menu: false, **html_attrs) ⇒ Component

Returns a new instance of Component.



5
6
7
8
# File 'app/components/lookbook/header/component.rb', line 5

def initialize(debug_menu: false, **html_attrs)
  @debug_menu = debug_menu
  super(**html_attrs)
end

Instance Method Details

#landing_pathObject



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

def landing_path
  helpers.landing_path if defined? helpers.landing_path
end