Class: PhlexKit::Blockquote
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::Blockquote
- Defined in:
- app/components/phlex_kit/typography/blockquote.rb
Overview
Blockquote, ported from ruby_ui's RubyUI::TypographyBlockquote. See heading.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Blockquote
constructor
A new instance of Blockquote.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ Blockquote
Returns a new instance of Blockquote.
4 5 6 |
# File 'app/components/phlex_kit/typography/blockquote.rb', line 4 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template(&block) ⇒ Object
8 9 10 |
# File 'app/components/phlex_kit/typography/blockquote.rb', line 8 def view_template(&block) blockquote(**mix({ class: "pk-blockquote" }, @attrs), &block) end |