Class: Pdf::Builders::HeaderBuilder
- Inherits:
-
Object
- Object
- Pdf::Builders::HeaderBuilder
show all
- Includes:
- DynamicComponents
- Defined in:
- lib/pdf/builders/header_builder.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
#method_missing, #respond_to_missing?
Constructor Details
10
11
12
|
# File 'lib/pdf/builders/header_builder.rb', line 10
def initialize
@blueprint = Blueprint.new
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Pdf::DynamicComponents
Instance Attribute Details
#blueprint ⇒ Object
Returns the value of attribute blueprint.
8
9
10
|
# File 'lib/pdf/builders/header_builder.rb', line 8
def blueprint
@blueprint
end
|
Instance Method Details
#context(source, **options) ⇒ Object
22
23
24
|
# File 'lib/pdf/builders/header_builder.rb', line 22
def context(source, **options)
@blueprint.add(:context, source, **options)
end
|
#logo(path, **options) ⇒ Object
14
15
16
|
# File 'lib/pdf/builders/header_builder.rb', line 14
def logo(path, **options)
@blueprint.add(:logo, path, **options)
end
|
#qr_code(**options) ⇒ Object
18
19
20
|
# File 'lib/pdf/builders/header_builder.rb', line 18
def qr_code(**options)
@blueprint.add(:qr_code, **options)
end
|
#text(value, **options) ⇒ Object
26
27
28
|
# File 'lib/pdf/builders/header_builder.rb', line 26
def text(value, **options)
@blueprint.add(:header_text, value, **options)
end
|