Module: Ichiban::NavHelper
- Included in:
- HTMLCompiler::Context
- Defined in:
- lib/ichiban/nav_helper.rb
Defined Under Namespace
Classes: Nav
Instance Method Summary collapse
Instance Method Details
#nav(items, options = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/ichiban/nav_helper.rb', line 4 def nav(items, = {}) unless items.is_a?(Array) raise "Expected first parameter of NavHelper#nav to be an Array, but got: #{items.inspect}" end = {sub_paths: :expand}.merge() Nav.new(items, , self).to_html end |