Class: RubyUI::CommandItem
- Defined in:
- lib/ruby_ui/command/command_item.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(value:, text: "", href: "#", **attrs) ⇒ CommandItem
constructor
A new instance of CommandItem.
- #view_template ⇒ Object
Constructor Details
#initialize(value:, text: "", href: "#", **attrs) ⇒ CommandItem
Returns a new instance of CommandItem.
5 6 7 8 9 10 |
# File 'lib/ruby_ui/command/command_item.rb', line 5 def initialize(value:, text: "", href: "#", **attrs) @value = value @text = text @href = href super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
12 13 14 |
# File 'lib/ruby_ui/command/command_item.rb', line 12 def view_template(&) a(**attrs, &) end |