Class: FoundationNavigation::Dropdown
- Inherits:
-
Object
- Object
- FoundationNavigation::Dropdown
- Includes:
- Builder
- Defined in:
- lib/foundation-navigation/dropdown.rb
Instance Attribute Summary
Attributes included from Builder
Instance Method Summary collapse
-
#initialize(title, link = '#', &block) ⇒ Dropdown
constructor
A new instance of Dropdown.
Methods included from Builder
#build_subtree, #divider, #dropdown, #left, #menu_group, #menu_item, #method_missing, #right, #title_area, #to_s
Constructor Details
#initialize(title, link = '#', &block) ⇒ Dropdown
Returns a new instance of Dropdown.
11 12 13 14 15 16 |
# File 'lib/foundation-navigation/dropdown.rb', line 11 def initialize(title, link = '#', &block) li(class: 'has-dropdown not-click') do a(href: link) { title } ul(class: 'dropdown', &block) end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FoundationNavigation::Builder