Class: UI::BlockquoteComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::BlockquoteComponent
- Defined in:
- app/view_components/ui/blockquote_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: nil, **attributes) ⇒ BlockquoteComponent
constructor
A new instance of BlockquoteComponent.
Constructor Details
#initialize(classes: nil, **attributes) ⇒ BlockquoteComponent
Returns a new instance of BlockquoteComponent.
5 6 7 8 |
# File 'app/view_components/ui/blockquote_component.rb', line 5 def initialize(classes: nil, **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/view_components/ui/blockquote_component.rb', line 10 def call extend UI::BlockquoteBehavior attrs = blockquote_html_attributes content_tag :blockquote, **attrs.merge(@attributes) do content end end |