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