Class: Pdf::Components::Title

Inherits:
Pdf::Component show all
Defined in:
lib/pdf/components/title.rb

Instance Attribute Summary

Attributes inherited from Pdf::Component

#pdf

Instance Method Summary collapse

Methods inherited from Pdf::Component

#initialize

Constructor Details

This class inherits a constructor from Pdf::Component

Instance Method Details

#render(content, size: 20, **options) ⇒ Object



6
7
8
9
# File 'lib/pdf/components/title.rb', line 6

def render(content, size: 20, **options)
  text content, size: size, style: :bold, **options
  move_down 10
end