Sha256: 3a3de0294c404c1dd520da85ea6215e50d3f27c5ce6bb3191fe6e298274bd533

Contents?: true

Size: 288 Bytes

Versions: 19

Compression:

Stored size: 288 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

19 entries across 19 versions & 1 rubygems

Version Path
woople-theme-0.8.2 app/presenters/menu_section_presenter.rb
woople-theme-0.8.1 app/presenters/menu_section_presenter.rb
woople-theme-0.8.0 app/presenters/menu_section_presenter.rb
woople-theme-0.6.27 app/presenters/menu_section_presenter.rb
woople-theme-0.6.26 app/presenters/menu_section_presenter.rb
woople-theme-0.6.25 app/presenters/menu_section_presenter.rb
woople-theme-0.6.24 app/presenters/menu_section_presenter.rb
woople-theme-0.6.23 app/presenters/menu_section_presenter.rb
woople-theme-0.6.22 app/presenters/menu_section_presenter.rb
woople-theme-0.6.21 app/presenters/menu_section_presenter.rb
woople-theme-0.6.20 app/presenters/menu_section_presenter.rb
woople-theme-0.6.19 app/presenters/menu_section_presenter.rb
woople-theme-0.6.18 app/presenters/menu_section_presenter.rb
woople-theme-0.6.17 app/presenters/menu_section_presenter.rb
woople-theme-0.6.14 app/presenters/menu_section_presenter.rb
woople-theme-0.6.13 app/presenters/menu_section_presenter.rb
woople-theme-0.6.12 app/presenters/menu_section_presenter.rb
woople-theme-0.6.11 app/presenters/menu_section_presenter.rb
woople-theme-0.6.10 app/presenters/menu_section_presenter.rb