diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2023-04-18 23:59:10 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2023-04-19 01:29:41 -0600 |
| commit | 549105dac7d1545442a02f39b2e51291db06bbf8 (patch) | |
| tree | 8c327b5958dd5cb7a3b5fd5f14518d7638828e98 /lib | |
| parent | 9d21102b32edcfd81dc3960d1284d4c1ac22dbb9 (diff) | |
remove redundant base qualifier on constants used at top level
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/pdf/ext/core/file.rb | 2 | ||||
| -rw-r--r-- | lib/asciidoctor/pdf/ext/prawn-icon.rb | 2 | ||||
| -rw-r--r-- | lib/asciidoctor/pdf/ext/prawn-svg/elements/image.rb | 2 | ||||
| -rw-r--r-- | lib/asciidoctor/pdf/optimizer/rghost.rb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/asciidoctor/pdf/ext/core/file.rb b/lib/asciidoctor/pdf/ext/core/file.rb index 4fe96787..68da668b 100644 --- a/lib/asciidoctor/pdf/ext/core/file.rb +++ b/lib/asciidoctor/pdf/ext/core/file.rb @@ -9,6 +9,6 @@ File.singleton_class.prepend (Module.new do # NOTE: JRuby < 9.4 doesn't implement this method; JRuby 9.4 implements it incorrectly def absolute_path? path - (::Pathname.new path).absolute? && !(%r/\A[[:alpha:]][[:alnum:]\-+]*:\/\/\S/.match? path) + (Pathname.new path).absolute? && !(%r/\A[[:alpha:]][[:alnum:]\-+]*:\/\/\S/.match? path) end end) if RUBY_ENGINE == 'jruby' diff --git a/lib/asciidoctor/pdf/ext/prawn-icon.rb b/lib/asciidoctor/pdf/ext/prawn-icon.rb index defb779e..b230143a 100644 --- a/lib/asciidoctor/pdf/ext/prawn-icon.rb +++ b/lib/asciidoctor/pdf/ext/prawn-icon.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true require 'prawn/icon' -Prawn::Icon::Compatibility.prepend (::Module.new { def warning *_args; end }) +Prawn::Icon::Compatibility.prepend (Module.new { def warning *_args; end }) require_relative 'prawn-icon/legacy' require_relative 'prawn-icon/interface' diff --git a/lib/asciidoctor/pdf/ext/prawn-svg/elements/image.rb b/lib/asciidoctor/pdf/ext/prawn-svg/elements/image.rb index f2af264c..421704f1 100644 --- a/lib/asciidoctor/pdf/ext/prawn-svg/elements/image.rb +++ b/lib/asciidoctor/pdf/ext/prawn-svg/elements/image.rb @@ -3,7 +3,7 @@ Prawn::SVG::Elements::Image.prepend (Module.new do def image_dimensions data unless (handler = find_image_handler data) - raise ::Prawn::SVG::Elements::Base::SkipElementError, 'Unsupported image type supplied to image tag' + raise Prawn::SVG::Elements::Base::SkipElementError, 'Unsupported image type supplied to image tag' end image = handler.new data [image.width.to_f, image.height.to_f] diff --git a/lib/asciidoctor/pdf/optimizer/rghost.rb b/lib/asciidoctor/pdf/optimizer/rghost.rb index bf42d888..0bb011ad 100644 --- a/lib/asciidoctor/pdf/optimizer/rghost.rb +++ b/lib/asciidoctor/pdf/optimizer/rghost.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative '../optimizer' unless defined? ::Asciidoctor::PDF::Optimizer +require_relative '../optimizer' unless defined? Asciidoctor::PDF::Optimizer require 'pathname' require 'rghost' require 'rghost/gs_alone' |
