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.10 app/presenters/menu_section_presenter.rb
woople-theme-0.2.9 app/presenters/menu_section_presenter.rb
woople-theme-0.2.8 app/presenters/menu_section_presenter.rb
woople-theme-0.2.7 app/presenters/menu_section_presenter.rb
woople-theme-0.2.6 app/presenters/menu_section_presenter.rb
woople-theme-0.2.5 app/presenters/menu_section_presenter.rb
woople-theme-0.2.4 app/presenters/menu_section_presenter.rb
woople-theme-0.2.3 app/presenters/menu_section_presenter.rb
woople-theme-0.2.2 app/presenters/menu_section_presenter.rb
woople-theme-0.2.1 app/presenters/menu_section_presenter.rb
woople-theme-0.2.0 app/presenters/menu_section_presenter.rb
woople-theme-0.1.0 app/presenters/menu_section_presenter.rb
woople-theme-0.0.6 app/presenters/menu_section_presenter.rb
woople-theme-0.0.5 app/presenters/menu_section_presenter.rb
woople-theme-0.0.4 app/presenters/menu_section_presenter.rb
woople-theme-0.0.3 app/presenters/menu_section_presenter.rb
woople-theme-0.0.2 app/presenters/menu_section_presenter.rb