Class: Components::Quotation
- Defined in:
- lib/backpack/components/quotation.rb
Constant Summary
Constants included from Backpack::Attributes
Backpack::Attributes::HTMLAttribute, Backpack::Attributes::HTMLAttributes, Backpack::Attributes::MandatoryHTMLAttribute
Instance Method Summary collapse
Methods included from Backpack::Classes
Methods included from Backpack::Identifier
Instance Method Details
#view_template ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/backpack/components/quotation.rb', line 8 def view_template blockquote(**root_attributes) do yield if cite? do cite { @cite } end end end end |