Class: Matestack::Ui::Bootstrap::Components::Badge
- Inherits:
-
BaseComponent
- Object
- Component
- BaseComponent
- Matestack::Ui::Bootstrap::Components::Badge
- Defined in:
- lib/matestack/ui/bootstrap/components/badge.rb
Instance Method Summary collapse
Instance Method Details
#response ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/matestack/ui/bootstrap/components/badge.rb', line 8 def response span badge_attributes do plain context.text if context.text yield if block_given? end span context.visually_hidden, class: "visually-hidden" if context.visually_hidden.present? end |