Class: Eac::MenusHelper::BootstrapGuiBuilder
- Inherits:
-
Object
- Object
- Eac::MenusHelper::BootstrapGuiBuilder
- Defined in:
- lib/eac/menus_helper/bootstrap_gui_builder.rb
Overview
Instance Method Summary collapse
- #build(entries) ⇒ Object
-
#initialize(view, options = {}) ⇒ BootstrapGuiBuilder
constructor
A new instance of BootstrapGuiBuilder.
Constructor Details
#initialize(view, options = {}) ⇒ BootstrapGuiBuilder
Returns a new instance of BootstrapGuiBuilder.
5 6 7 8 |
# File 'lib/eac/menus_helper/bootstrap_gui_builder.rb', line 5 def initialize(view, = {}) @view = view @options = end |
Instance Method Details
#build(entries) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/eac/menus_helper/bootstrap_gui_builder.rb', line 10 def build(entries) fail "Argument \"entries\" is not a array" unless entries.is_a?(Array) @view.content_tag(:ul, class: "nav navbar-nav #{@options[:class]}".strip) do (entries) end end |