Class: Kreuzberg::Config::FontConfig
- Inherits:
-
Object
- Object
- Kreuzberg::Config::FontConfig
- Defined in:
- lib/kreuzberg/config.rb
Overview
Font configuration for PDF rendering
Instance Attribute Summary collapse
-
#custom_font_dirs ⇒ Object
Returns the value of attribute custom_font_dirs.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
Instance Method Summary collapse
-
#initialize(enabled: true, custom_font_dirs: nil) ⇒ FontConfig
constructor
A new instance of FontConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(enabled: true, custom_font_dirs: nil) ⇒ FontConfig
Returns a new instance of FontConfig.
330 331 332 333 |
# File 'lib/kreuzberg/config.rb', line 330 def initialize(enabled: true, custom_font_dirs: nil) @enabled = enabled ? true : false @custom_font_dirs = custom_font_dirs end |
Instance Attribute Details
#custom_font_dirs ⇒ Object
Returns the value of attribute custom_font_dirs.
328 329 330 |
# File 'lib/kreuzberg/config.rb', line 328 def custom_font_dirs @custom_font_dirs end |
#enabled ⇒ Object
Returns the value of attribute enabled.
328 329 330 |
# File 'lib/kreuzberg/config.rb', line 328 def enabled @enabled end |
Instance Method Details
#to_h ⇒ Object
335 336 337 338 339 340 |
# File 'lib/kreuzberg/config.rb', line 335 def to_h { enabled: @enabled, custom_font_dirs: @custom_font_dirs }.compact end |