Class: RubyUI::DropdownMenu
- Defined in:
- lib/ruby_ui/dropdown_menu/dropdown_menu.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options: {}, **attrs) ⇒ DropdownMenu
constructor
A new instance of DropdownMenu.
- #view_template ⇒ Object
Constructor Details
#initialize(options: {}, **attrs) ⇒ DropdownMenu
Returns a new instance of DropdownMenu.
5 6 7 8 |
# File 'lib/ruby_ui/dropdown_menu/dropdown_menu.rb', line 5 def initialize(options: {}, **attrs) @options = super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
10 11 12 |
# File 'lib/ruby_ui/dropdown_menu/dropdown_menu.rb', line 10 def view_template(&) div(**attrs, &) end |