Class: Pdf::Component
- Inherits:
-
Object
- Object
- Pdf::Component
- Defined in:
- lib/pdf/component.rb
Direct Known Subclasses
Pdf::Components::Alert, Pdf::Components::Context, Pdf::Components::Date, Pdf::Components::Heading, Pdf::Components::Hr, Pdf::Components::Logo, Pdf::Components::Paragraph, Pdf::Components::QrCode, Pdf::Components::Spacer, Pdf::Components::Span, Pdf::Components::Subtitle, Pdf::Components::Table, Pdf::Components::Title
Instance Attribute Summary collapse
-
#pdf ⇒ Object
readonly
Returns the value of attribute pdf.
Instance Method Summary collapse
-
#initialize(pdf) ⇒ Component
constructor
A new instance of Component.
- #render ⇒ Object
Constructor Details
#initialize(pdf) ⇒ Component
Returns a new instance of Component.
7 8 9 |
# File 'lib/pdf/component.rb', line 7 def initialize(pdf) @pdf = pdf end |
Instance Attribute Details
#pdf ⇒ Object (readonly)
Returns the value of attribute pdf.
5 6 7 |
# File 'lib/pdf/component.rb', line 5 def pdf @pdf end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'lib/pdf/component.rb', line 11 def render(...) raise NotImplementedError, "#{self.class}#render not implemented" end |