mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
11 lines
218 B
Ruby
11 lines
218 B
Ruby
module Linguist
|
|
module Strategy
|
|
# Detects language based on filename and/or extension
|
|
class Filename
|
|
def self.call(blob, _)
|
|
Language.find_by_filename(blob.name.to_s)
|
|
end
|
|
end
|
|
end
|
|
end
|