class Ronn::Document
def basename(type=nil)
the source file path but falls back on the name and section
for the given file extension. Uses the name and section from
Generate a file basename of the form "
def basename(type=nil) type = nil if ['', 'roff'].include?(type.to_s) [path_name || @name, path_section || @section, type]. compact.join('.') end