Module: Fume::Nav::HelperExt
- Defined in:
- lib/fume/nav/helper_ext.rb
Instance Method Summary collapse
Instance Method Details
#fume_nav(*args, &block) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fume/nav/helper_ext.rb', line 6 def fume_nav(*args, &block) attributes = { active_class: "active", hide_if_empty: true }.merge(args.) attributes[:current] = args.shift attributes[:helper] = self tag = NavTag.new(attributes) content = capture(tag, &block) return content if !tag.hide? end |