Module: Palapala
- Defined in:
- lib/palapala/asset_helper.rb,
lib/palapala.rb,
lib/palapala/pdf.rb,
lib/palapala/helper.rb,
lib/palapala/railtie.rb,
lib/palapala/version.rb,
lib/palapala/renderer.rb,
lib/palapala/chrome_process.rb,
lib/palapala/html_preprocessor.rb,
lib/palapala/persistent_server.rb,
lib/palapala/web_socket_client.rb
Overview
sourced from ferrum_pdf (modified)
Defined Under Namespace
Modules: AssetsHelper, ChromeProcess, HTMLPreprocessor, Helper Classes: AssetFinder, BaseAsset, Pdf, PersistentServer, PropshaftAsset, Railtie, Renderer, SprocketsAsset, WebSocketClient
Constant Summary collapse
- VERSION =
"0.1.26"
Class Attribute Summary collapse
-
.chrome_headless_shell_version ⇒ Object
Chrome headless shell version to use (stable, beta, dev, canary, etc.) when launching a new Chrome instance using npx.
-
.chrome_params ⇒ Object
params to pass to Chrome when launched as a child process.
-
.debug ⇒ Object
debug mode.
-
.defaults ⇒ Object
default options for PDF generation.
-
.headless_chrome_path ⇒ Object
path to the headless Chrome executable when using the child process renderer.
-
.headless_chrome_url ⇒ Object
URL to the headless Chrome instance when using the remote renderer (priority).
Class Method Summary collapse
Class Attribute Details
.chrome_headless_shell_version ⇒ Object
Chrome headless shell version to use (stable, beta, dev, canary, etc.) when launching a new Chrome instance using npx
38 39 40 |
# File 'lib/palapala.rb', line 38 def chrome_headless_shell_version @chrome_headless_shell_version end |
.chrome_params ⇒ Object
params to pass to Chrome when launched as a child process
22 23 24 |
# File 'lib/palapala.rb', line 22 def chrome_params @chrome_params end |
.debug ⇒ Object
debug mode
25 26 27 |
# File 'lib/palapala.rb', line 25 def debug @debug end |
.defaults ⇒ Object
default options for PDF generation
28 29 30 |
# File 'lib/palapala.rb', line 28 def defaults @defaults end |
.headless_chrome_path ⇒ Object
path to the headless Chrome executable when using the child process renderer
31 32 33 |
# File 'lib/palapala.rb', line 31 def headless_chrome_path @headless_chrome_path end |
.headless_chrome_url ⇒ Object
URL to the headless Chrome instance when using the remote renderer (priority)
34 35 36 |
# File 'lib/palapala.rb', line 34 def headless_chrome_url @headless_chrome_url end |
Class Method Details
.setup {|_self| ... } ⇒ Object
16 17 18 |
# File 'lib/palapala.rb', line 16 def self.setup yield self end |