Class: MenuSectionPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- MenuSectionPresenter
- Defined in:
- app/presenters/menu_section_presenter.rb
Instance Method Summary collapse
Instance Method Details
#links ⇒ Object
8 9 10 11 12 |
# File 'app/presenters/menu_section_presenter.rb', line 8 def links return [] unless section.respond_to? :links @links ||= ThemePresentation.wrap_collection(section.links, MenuLinkPresenter) end |
#name {|section.name| ... } ⇒ Object
4 5 6 |
# File 'app/presenters/menu_section_presenter.rb', line 4 def name yield(section.name) if section.respond_to? :name end |
#widgets ⇒ Object
14 15 16 17 18 |
# File 'app/presenters/menu_section_presenter.rb', line 14 def return [] unless section.respond_to? :widgets @widgets ||= ThemePresentation.wrap_collection(section., MenuWidgetPresenter) end |