Class: Ichiban::NavHelper::Nav

Inherits:
Object
  • Object
show all
Defined in:
lib/ichiban/nav_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(items, options, context) ⇒ Nav

Returns a new instance of Nav.



13
14
15
16
17
# File 'lib/ichiban/nav_helper.rb', line 13

def initialize(items, options, context)
  @items = items
  @options = options
  @ctx = context
end

Instance Method Details

#to_htmlObject



19
20
21
# File 'lib/ichiban/nav_helper.rb', line 19

def to_html
  ul(@items, 0, @options)
end