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



4
5
6
7
8
9
10
# File 'lib/ichiban/nav_helper.rb', line 4

def nav(items, options = {})
  unless items.is_a?(Array)
    raise "Expected first parameter of NavHelper#nav to be an Array, but got: #{items.inspect}"
  end
  options = {sub_paths: :expand}.merge(options)
  Nav.new(items, options, self).to_html
end