def extensions
      _, *segments = name.downcase.split(".", -1)

      segments.map.with_index do |segment, index|
        "." + segments[index..-1].join(".")
      end
    end
def extensions
      _, *segments = name.downcase.split(".", -1)

      segments.map.with_index do |segment, index|
        "." + segments[index..-1].join(".")
      end
    end
Public: Return an array of the file extensions

     >> Linguist::Blob.new("app/views/things/index.html.erb").extensions
     => [".html.erb", ".erb"]

 Returns an Array