Class: MenuSectionPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/presenters/menu_section_presenter.rb

Instance Method Summary collapse

Instance Method Details



8
9
10
# File 'app/presenters/menu_section_presenter.rb', line 8

def links
  @links ||= ThemePresentation.wrap_collection(section.links, MenuLinkPresenter)
end

#name {|section.name| ... } ⇒ Object

Yields:

  • (section.name)


4
5
6
# File 'app/presenters/menu_section_presenter.rb', line 4

def name
  yield(section.name) if section.respond_to? :name
end