diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-10-06 23:51:45 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2020-10-06 23:53:28 -0600 |
| commit | 08141004907d717101743e3a150e9fbdfe71d451 (patch) | |
| tree | 35e02c1be05ccd4375608d13b8a9188d617f499a /README.adoc | |
| parent | f713bd5b788685579f8fc5c148aad1317e3ad1ee (diff) | |
rename Optimizer#generate_file method to Optimizer#optimize_file
Diffstat (limited to 'README.adoc')
| -rw-r--r-- | README.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/README.adoc b/README.adoc index 57b95dd6..16d50d19 100644 --- a/README.adoc +++ b/README.adoc @@ -1208,10 +1208,10 @@ Start by creating a Ruby file named [.path]_hexapdf-optimizer.rb_, then populate [source,ruby] ---- class Asciidoctor::PDF::Optimizer - def initialize *args; end + def initialize *; end - def generate_file target - system 'hexapdf', 'optimize', '--compress-pages', '--force', target, target, exception: true + def optimize_file path + system 'hexapdf', 'optimize', '--compress-pages', '--force', path, path, exception: true nil end end |
