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.6.9 app/presenters/menu_section_presenter.rb
woople-theme-0.6.8 app/presenters/menu_section_presenter.rb
woople-theme-0.6.7 app/presenters/menu_section_presenter.rb
woople-theme-0.6.6 app/presenters/menu_section_presenter.rb
woople-theme-0.6.5 app/presenters/menu_section_presenter.rb
woople-theme-0.6.4 app/presenters/menu_section_presenter.rb
woople-theme-0.6.3 app/presenters/menu_section_presenter.rb
woople-theme-0.6.2 app/presenters/menu_section_presenter.rb
woople-theme-0.6.1 app/presenters/menu_section_presenter.rb
woople-theme-0.6 app/presenters/menu_section_presenter.rb
woople-theme-0.5.17 app/presenters/menu_section_presenter.rb
woople-theme-0.5.16 app/presenters/menu_section_presenter.rb
woople-theme-0.5.15 app/presenters/menu_section_presenter.rb
woople-theme-0.5.14 app/presenters/menu_section_presenter.rb
woople-theme-0.5.13 app/presenters/menu_section_presenter.rb
woople-theme-0.5.12 app/presenters/menu_section_presenter.rb
woople-theme-0.5.11 app/presenters/menu_section_presenter.rb
woople-theme-0.5.10 app/presenters/menu_section_presenter.rb
woople-theme-0.5.9 app/presenters/menu_section_presenter.rb
woople-theme-0.5.8 app/presenters/menu_section_presenter.rb