Class: Navbar::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/navbar/renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRenderer

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

#elementObject

Returns the value of attribute element.



3
4
5
# File 'lib/navbar/renderer.rb', line 3

def element
  @element
end

#wrapperObject

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