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.5.7 app/presenters/menu_section_presenter.rb
woople-theme-0.5.6 app/presenters/menu_section_presenter.rb
woople-theme-0.5.5 app/presenters/menu_section_presenter.rb
woople-theme-0.5.4 app/presenters/menu_section_presenter.rb
woople-theme-0.5.3 app/presenters/menu_section_presenter.rb
woople-theme-0.5.2 app/presenters/menu_section_presenter.rb
woople-theme-0.5.0.1 app/presenters/menu_section_presenter.rb
woople-theme-0.5.0 app/presenters/menu_section_presenter.rb
woople-theme-0.4.2 app/presenters/menu_section_presenter.rb
woople-theme-0.4.1 app/presenters/menu_section_presenter.rb
woople-theme-0.4.0 app/presenters/menu_section_presenter.rb
woople-theme-0.3.9 app/presenters/menu_section_presenter.rb
woople-theme-0.3.8 app/presenters/menu_section_presenter.rb
woople-theme-0.3.7 app/presenters/menu_section_presenter.rb
woople-theme-0.3.6 app/presenters/menu_section_presenter.rb
woople-theme-0.3.5 app/presenters/menu_section_presenter.rb
woople-theme-0.3.04 app/presenters/menu_section_presenter.rb
woople-theme-0.3.03 app/presenters/menu_section_presenter.rb
woople-theme-0.3.02 app/presenters/menu_section_presenter.rb
woople-theme-0.3.01 app/presenters/menu_section_presenter.rb