Class: PrawnHtml::Tags::Blockquote

Inherits:
PrawnHtml::Tag show all
Defined in:
lib/prawn_html/tags/blockquote.rb

Constant Summary collapse

ELEMENTS =
[:blockquote].freeze
MARGIN_BOTTOM =
12.7
MARGIN_LEFT =
40.4
MARGIN_TOP =
12.7

Constants inherited from PrawnHtml::Tag

PrawnHtml::Tag::CALLBACKS, PrawnHtml::Tag::TAG_CLASSES

Instance Attribute Summary

Attributes inherited from PrawnHtml::Tag

#attrs, #parent, #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

Returns:

  • (Boolean)


12
13
14
# File 'lib/prawn_html/tags/blockquote.rb', line 12

def block?
  true
end

#tag_stylesObject



16
17
18
19
20
21
22
# File 'lib/prawn_html/tags/blockquote.rb', line 16

def tag_styles
  <<~STYLES
    margin-bottom: #{MARGIN_BOTTOM}px;
    margin-left: #{MARGIN_LEFT}px;
    margin-top: #{MARGIN_TOP}px;
  STYLES
end