Sha256: b6238c80ee15df98d5683dd164cf4c0ff14865cb42634d19832d20db02c9881e

Contents?: true

Size: 290 Bytes

Versions: 97

Compression:

Stored size: 290 Bytes

Contents

require 'delegate'

class MenuSectionPresenter < SimpleDelegator
  def name
    yield(section.name) if section.respond_to? :name
  end

  def links
    @links ||= ThemePresentation.wrap_collection(section.links, MenuLinkPresenter)
  end

  private

  def section
    __getobj__
  end

end

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
woople-theme-0.3.0 app/presenters/menu_section_presenter.rb
woople-theme-0.2.49 app/presenters/menu_section_presenter.rb
woople-theme-0.2.48 app/presenters/menu_section_presenter.rb
woople-theme-0.2.47 app/presenters/menu_section_presenter.rb
woople-theme-0.2.46 app/presenters/menu_section_presenter.rb
woople-theme-0.2.45 app/presenters/menu_section_presenter.rb
woople-theme-0.2.44 app/presenters/menu_section_presenter.rb
woople-theme-0.2.43 app/presenters/menu_section_presenter.rb
woople-theme-0.2.42 app/presenters/menu_section_presenter.rb
woople-theme-0.2.41 app/presenters/menu_section_presenter.rb
woople-theme-0.2.40 app/presenters/menu_section_presenter.rb
woople-theme-0.2.39 app/presenters/menu_section_presenter.rb
woople-theme-0.2.38 app/presenters/menu_section_presenter.rb
woople-theme-0.2.37 app/presenters/menu_section_presenter.rb
woople-theme-0.2.36 app/presenters/menu_section_presenter.rb
woople-theme-0.2.35 app/presenters/menu_section_presenter.rb
woople-theme-0.2.34 app/presenters/menu_section_presenter.rb
woople-theme-0.2.33 app/presenters/menu_section_presenter.rb
woople-theme-0.2.32 app/presenters/menu_section_presenter.rb
woople-theme-0.2.31 app/presenters/menu_section_presenter.rb