Class: Pdf::Component

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pdfObject (readonly)

Returns the value of attribute pdf.



5
6
7
# File 'lib/pdf/component.rb', line 5

def pdf
  @pdf
end

Instance Method Details

#renderObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/pdf/component.rb', line 11

def render(...)
  raise NotImplementedError, "#{self.class}#render not implemented"
end