Class: JetUi::Stat::LabelComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Stat::LabelComponent
- Defined in:
- app/components/jet_ui/stat/label_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ LabelComponent
constructor
A new instance of LabelComponent.
Constructor Details
#initialize(**options) ⇒ LabelComponent
Returns a new instance of LabelComponent.
6 7 8 |
# File 'app/components/jet_ui/stat/label_component.rb', line 6 def initialize(**) @options = end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'app/components/jet_ui/stat/label_component.rb', line 10 def call content_tag :p, content, class: classes, **@options end |