Class: Spina::MenuPresenter
- Inherits:
-
Object
- Object
- Spina::MenuPresenter
- Includes:
- ActionView::Helpers::TagHelper, ActionView::Helpers::UrlHelper, ActiveSupport::Configurable
- Defined in:
- app/presenters/spina/menu_presenter.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
Returns the value of attribute collection.
-
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
Instance Method Summary collapse
-
#initialize(collection) ⇒ MenuPresenter
constructor
A new instance of MenuPresenter.
- #to_html ⇒ Object
Constructor Details
#initialize(collection) ⇒ MenuPresenter
Returns a new instance of MenuPresenter.
23 24 25 |
# File 'app/presenters/spina/menu_presenter.rb', line 23 def initialize(collection) @collection = collection end |
Instance Attribute Details
#collection ⇒ Object
Returns the value of attribute collection.
7 8 9 |
# File 'app/presenters/spina/menu_presenter.rb', line 7 def collection @collection end |
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
7 8 9 |
# File 'app/presenters/spina/menu_presenter.rb', line 7 def output_buffer @output_buffer end |
Instance Method Details
#to_html ⇒ Object
27 28 29 |
# File 'app/presenters/spina/menu_presenter.rb', line 27 def to_html (roots) end |