Class: DaisyUI::Badge

Inherits:
Base
  • Object
show all
Defined in:
lib/daisy_ui/badge.rb

Constant Summary

Constants inherited from Base

DaisyUI::Base::BOOLS, DaisyUI::Base::COLOR_MODIFIERS

Instance Method Summary collapse

Methods inherited from Base

inherited, register_modifiers

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_templateObject



11
12
13
# File 'lib/daisy_ui/badge.rb', line 11

def view_template(&)
  public_send(as, class: classes, **attributes, &)
end