Class: PrawnHtml::Tags::P
- Inherits:
-
PrawnHtml::Tag
- Object
- PrawnHtml::Tag
- PrawnHtml::Tags::P
- Defined in:
- lib/prawn_html/tags/p.rb
Constant Summary collapse
- ELEMENTS =
[:p].freeze
- MARGIN_BOTTOM =
12.5
- MARGIN_TOP =
12.5
Constants inherited from PrawnHtml::Tag
PrawnHtml::Tag::CALLBACKS, PrawnHtml::Tag::TAG_CLASSES
Instance Attribute Summary
Attributes inherited from PrawnHtml::Tag
Instance Method Summary collapse
Methods inherited from PrawnHtml::Tag
#block_styles, class_for, #initialize, #process_styles, #tag_close_styles, #tag_open_styles
Constructor Details
This class inherits a constructor from PrawnHtml::Tag
Instance Method Details
#block? ⇒ Boolean
11 12 13 |
# File 'lib/prawn_html/tags/p.rb', line 11 def block? true end |
#tag_styles ⇒ Object
15 16 17 18 19 20 |
# File 'lib/prawn_html/tags/p.rb', line 15 def tag_styles <<~STYLES margin-bottom: #{MARGIN_BOTTOM}px; margin-top: #{MARGIN_TOP}px; STYLES end |