Class: Gotenberg::Compiler
- Inherits:
-
Object
- Object
- Gotenberg::Compiler
- Defined in:
- lib/gotenberg/compiler.rb
Constant Summary collapse
- CONTEXT_TAG_REGEX =
/(<!-- GOTENBERG-CONTEXT-TAG (.+) -->)/.freeze
Instance Attribute Summary collapse
-
#html ⇒ Object
Returns the value of attribute html.
Instance Method Summary collapse
- #assets ⇒ Object
- #body ⇒ Object
-
#initialize(html) ⇒ Compiler
constructor
A new instance of Compiler.
Constructor Details
#initialize(html) ⇒ Compiler
Returns a new instance of Compiler.
12 13 14 |
# File 'lib/gotenberg/compiler.rb', line 12 def initialize html @html = html end |
Instance Attribute Details
#html ⇒ Object
Returns the value of attribute html.
10 11 12 |
# File 'lib/gotenberg/compiler.rb', line 10 def html @html end |
Instance Method Details
#assets ⇒ Object
20 21 22 |
# File 'lib/gotenberg/compiler.rb', line 20 def assets @assets ||= [] end |
#body ⇒ Object
16 17 18 |
# File 'lib/gotenberg/compiler.rb', line 16 def body @body ||= compile_body(html) end |