# File lib/asciidoctor/helpers.rb, line 175
  def self.rootname(file_name)
    (ext = ::File.extname(file_name)).empty? ? file_name : file_name[0...-ext.length]
  end