# File lib/asciidoctor/helpers.rb, line 171 def self.rootname filename filename.slice 0, ((filename.rindex '.') || filename.length) end