module Asciidoctor::Image
Public Class Methods
image_type(path)
click to toggle source
# File lib/asciidoctor-pdf/asciidoctor_ext/image.rb, line 4 def image_type path (::File.extname path).downcase[1..-1] end
Public Instance Methods
image_type()
click to toggle source
# File lib/asciidoctor-pdf/asciidoctor_ext/image.rb, line 9 def image_type ::File.extname(inline? ? target : (attr 'target')).downcase[1..-1] end
target_with_image_type()
click to toggle source
# File lib/asciidoctor-pdf/asciidoctor_ext/image.rb, line 13 def target_with_image_type image_path = inline? ? (target) : (attr 'target') [image_path, (::File.extname image_path).downcase[1..-1]] end