Sha256: 2fc20e8b15a30249ba6dcd431db9fb06d150f9f179c6c9c39d0bc86351185036

Contents?: true

Size: 533 Bytes

Versions: 23

Compression:

Stored size: 533 Bytes

Contents

module Lookbook
  class Header::Component < Lookbook::BaseComponent
    attr_reader :project_logo, :project_name

    def initialize(debug_menu: false, project_name: nil, project_logo: nil, **html_attrs)
      @debug_menu = debug_menu
      @project_logo = project_logo
      @project_name = project_name
      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

23 entries across 23 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/components/lookbook/header/component.rb
lookbook-2.3.3 app/components/lookbook/header/component.rb
lookbook-2.3.2 app/components/lookbook/header/component.rb
lookbook-2.3.0 app/components/lookbook/header/component.rb
lookbook-2.2.2 app/components/lookbook/header/component.rb
lookbook-2.2.1 app/components/lookbook/header/component.rb
lookbook-2.2.0 app/components/lookbook/header/component.rb
lookbook-2.1.1 app/components/lookbook/header/component.rb
lookbook-2.1.0 app/components/lookbook/header/component.rb
lookbook-2.0.5 app/components/lookbook/header/component.rb
lookbook-2.0.4 app/components/lookbook/header/component.rb
lookbook-2.0.3 app/components/lookbook/header/component.rb
lookbook-2.0.2 app/components/lookbook/header/component.rb
lookbook-2.0.1 app/components/lookbook/header/component.rb
lookbook-2.0.0 app/components/lookbook/header/component.rb
lookbook-2.0.0.rc.3 app/components/lookbook/header/component.rb
lookbook-2.0.0.rc.2 app/components/lookbook/header/component.rb
lookbook-2.0.0.rc.1 app/components/lookbook/header/component.rb
lookbook-2.0.0.beta.9 app/components/lookbook/header/component.rb
lookbook-2.0.0.beta.8 app/components/lookbook/header/component.rb