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.2.30 app/presenters/menu_section_presenter.rb
woople-theme-0.2.29 app/presenters/menu_section_presenter.rb
woople-theme-0.2.28 app/presenters/menu_section_presenter.rb
woople-theme-0.2.27 app/presenters/menu_section_presenter.rb
woople-theme-0.2.26 app/presenters/menu_section_presenter.rb
woople-theme-0.2.25 app/presenters/menu_section_presenter.rb
woople-theme-0.2.24 app/presenters/menu_section_presenter.rb
woople-theme-0.2.23 app/presenters/menu_section_presenter.rb
woople-theme-0.2.22 app/presenters/menu_section_presenter.rb
woople-theme-0.2.21 app/presenters/menu_section_presenter.rb
woople-theme-0.2.20 app/presenters/menu_section_presenter.rb
woople-theme-0.2.19 app/presenters/menu_section_presenter.rb
woople-theme-0.2.18 app/presenters/menu_section_presenter.rb
woople-theme-0.2.17 app/presenters/menu_section_presenter.rb
woople-theme-0.2.16 app/presenters/menu_section_presenter.rb
woople-theme-0.2.15 app/presenters/menu_section_presenter.rb
woople-theme-0.2.14 app/presenters/menu_section_presenter.rb
woople-theme-0.2.13 app/presenters/menu_section_presenter.rb
woople-theme-0.2.12 app/presenters/menu_section_presenter.rb
woople-theme-0.2.11 app/presenters/menu_section_presenter.rb