Class: Navigatrix::Rendering::Strategies::List::Item
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Navigatrix::Rendering::Strategies::List::Item
- Includes:
- ActionView::Helpers::TagHelper, ActionView::Helpers::UrlHelper
- Defined in:
- lib/navigatrix/rendering/strategies/list.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(item, options = {}) ⇒ Item
constructor
A new instance of Item.
- #render ⇒ Object
Constructor Details
#initialize(item, options = {}) ⇒ Item
Returns a new instance of Item.
36 37 38 39 |
# File 'lib/navigatrix/rendering/strategies/list.rb', line 36 def initialize(item, = {}) super(item) = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
34 35 36 |
# File 'lib/navigatrix/rendering/strategies/list.rb', line 34 def end |
Instance Method Details
#render ⇒ Object
41 42 43 |
# File 'lib/navigatrix/rendering/strategies/list.rb', line 41 def render content_tag(:li, content, html_attributes) if render? end |