Class: Mariner::UnorderedListRenderer::ItemRenderer
- Inherits:
-
Renderer::Base
- Object
- Renderer::Base
- Mariner::UnorderedListRenderer::ItemRenderer
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/mariner/unordered_list_renderer.rb
Instance Attribute Summary
Attributes inherited from Renderer::Base
Instance Method Summary collapse
-
#render ⇒ Object
Public: Renders an A element according to the Url properties.
-
#render_options ⇒ Object
Public: The options that the A element will be rendered with.
Methods inherited from Renderer::Base
Constructor Details
This class inherits a constructor from Mariner::Renderer::Base
Instance Method Details
#render ⇒ Object
Public: Renders an A element according to the Url properties.
132 133 134 |
# File 'lib/mariner/unordered_list_renderer.rb', line 132 def render content_tag :a, subject.title, end |
#render_options ⇒ Object
Public: The options that the A element will be rendered with. These are forwarded on to ActionView::Helpers::TagHelper#content_tag
139 140 141 142 |
# File 'lib/mariner/unordered_list_renderer.rb', line 139 def opts = { :href => subject.href, :class => subject.name.to_s } opts.merge(:class => rendering_strategy.item_classname, &merge_proc).merge(subject., &merge_proc) end |