Adding all_extensions method to Language

This commit is contained in:
Arfon Smith
2014-04-22 16:56:27 -05:00
parent 64b6f18e66
commit 152e3ace99
2 changed files with 6 additions and 4 deletions

View File

@@ -426,6 +426,11 @@ module Linguist
#
# Returns the extensions Array
attr_reader :filenames
# Public: Return all possible extensions for language
def all_extensions
(extensions + [primary_extension]).uniq
end
# Public: Get URL escaped name.
#