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