def process(name)
      self.ext = File.extname(name)
      self.basename = name[0..-ext.length - 1].gsub(%r!\.*\z!, "")
    end
def process(name)
      self.ext = File.extname(name)
      self.basename = name[0..-ext.length - 1].gsub(%r!\.*\z!, "")
    end
Extract information from the page filename.

 name - The String filename of the page file.

 NOTE: `String#gsub` removes all trailing periods (in comparison to `String#chomp`)
 Returns nothing.