Class: DaisyUI::Badge
Constant Summary
Constants inherited from Base
DaisyUI::Base::BOOLS, DaisyUI::Base::COLOR_MODIFIERS
Instance Method Summary collapse
-
#initialize(as: :span) ⇒ Badge
constructor
A new instance of Badge.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(as: :span) ⇒ Badge
Returns a new instance of Badge.
7 8 9 |
# File 'lib/daisy_ui/badge.rb', line 7 def initialize(*, as: :span, **) super end |
Instance Method Details
#view_template ⇒ Object
11 12 13 |
# File 'lib/daisy_ui/badge.rb', line 11 def view_template(&) public_send(as, class: classes, **attributes, &) end |