summaryrefslogtreecommitdiff
path: root/README.adoc
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-10-06 23:51:45 -0600
committerDan Allen <dan.j.allen@gmail.com>2020-10-06 23:53:28 -0600
commit08141004907d717101743e3a150e9fbdfe71d451 (patch)
tree35e02c1be05ccd4375608d13b8a9188d617f499a /README.adoc
parentf713bd5b788685579f8fc5c148aad1317e3ad1ee (diff)
rename Optimizer#generate_file method to Optimizer#optimize_file
Diffstat (limited to 'README.adoc')
-rw-r--r--README.adoc6
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