Sha256: 4122be1fc464919200319225d40527822ffab543746ed413adf6e1139f00ae72

Contents?: true

Size: 245 Bytes

Versions: 5

Compression:

Stored size: 245 Bytes

Contents

# frozen_string_literal: true

class File
  class << self
    def absolute_path? path
      (path.start_with? '/') || (ALT_SEPARATOR && (path.start_with? (absolute_path path).slice 0, 3))
    end unless method_defined? :absolute_path?
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.3 lib/asciidoctor/pdf/ext/core/file.rb
asciidoctor-pdf-1.5.2 lib/asciidoctor/pdf/ext/core/file.rb
asciidoctor-pdf-1.5.1 lib/asciidoctor/pdf/ext/core/file.rb
asciidoctor-pdf-1.5.0 lib/asciidoctor/pdf/ext/core/file.rb
asciidoctor-pdf-1.5.0.rc.3 lib/asciidoctor/pdf/ext/core/file.rb