Class: Navbar::Renderer
- Inherits:
-
Object
- Object
- Navbar::Renderer
- Defined in:
- lib/navbar/renderer.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
Returns the value of attribute element.
-
#wrapper ⇒ Object
Returns the value of attribute wrapper.
Instance Method Summary collapse
-
#initialize ⇒ Renderer
constructor
A new instance of Renderer.
- #render(collection) ⇒ Object
Constructor Details
#initialize ⇒ Renderer
Returns a new instance of Renderer.
5 6 7 8 |
# File 'lib/navbar/renderer.rb', line 5 def initialize wrapper = :ul element = :li end |
Instance Attribute Details
#element ⇒ Object
Returns the value of attribute element.
3 4 5 |
# File 'lib/navbar/renderer.rb', line 3 def element @element end |
#wrapper ⇒ Object
Returns the value of attribute wrapper.
3 4 5 |
# File 'lib/navbar/renderer.rb', line 3 def wrapper @wrapper end |
Instance Method Details
#render(collection) ⇒ Object
10 11 |
# File 'lib/navbar/renderer.rb', line 10 def render(collection) end |