Class: UI::Blockquote
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::Blockquote
- Defined in:
- app/components/ui/blockquote.rb
Instance Method Summary collapse
-
#initialize(classes: nil, **attributes) ⇒ Blockquote
constructor
A new instance of Blockquote.
- #view_template(&block) ⇒ Object
Constructor Details
#initialize(classes: nil, **attributes) ⇒ Blockquote
Returns a new instance of Blockquote.
5 6 7 8 |
# File 'app/components/ui/blockquote.rb', line 5 def initialize(classes: nil, **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
10 11 12 13 14 |
# File 'app/components/ui/blockquote.rb', line 10 def view_template(&block) extend UI::BlockquoteBehavior blockquote(**blockquote_html_attributes.merge(@attributes), &block) end |