Sha256: 69041160c3801bac8b703c8e70f0bc28d54844bad1fdcbbfd12b008f068966ea

Contents?: true

Size: 406 Bytes

Versions: 5

Compression:

Stored size: 406 Bytes

Contents

module Lookbook
  class Header::Component < Lookbook::BaseComponent
    renders_one :branding

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

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

    def debug_data
      JSON.pretty_generate(Lookbook.debug_data)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lookbook-2.0.0.beta.4 app/components/lookbook/header/component.rb
lookbook-2.0.0.beta.3 app/components/lookbook/header/component.rb
lookbook-2.0.0.beta.2 app/components/lookbook/header/component.rb
lookbook-2.0.0.beta.1 app/components/lookbook/header/component.rb
lookbook-2.0.0.beta.0 app/components/lookbook/header/component.rb