Sha256: faea756122919ad6b271d3cad3e0e43aecccef394c9962d7967780d80f3defa0

Contents?: true

Size: 221 Bytes

Versions: 19

Compression:

Stored size: 221 Bytes

Contents

module Linguist
  module Strategy
    # Detects language based on filename
    class Filename
      def self.call(blob, _)
        name = blob.name.to_s
        Language.find_by_filename(name)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
github-linguist-6.0.1 lib/linguist/strategy/filename.rb
github-linguist-6.0.0 lib/linguist/strategy/filename.rb
github-linguist-5.3.3 lib/linguist/strategy/filename.rb
github-linguist-5.3.2 lib/linguist/strategy/filename.rb
github-linguist-5.3.1 lib/linguist/strategy/filename.rb
github-linguist-5.3.0 lib/linguist/strategy/filename.rb
github-linguist-5.2.0 lib/linguist/strategy/filename.rb
github-linguist-5.1.0 lib/linguist/strategy/filename.rb
github-linguist-5.0.11 lib/linguist/strategy/filename.rb
github-linguist-5.0.10 lib/linguist/strategy/filename.rb
github-linguist-5.0.9 lib/linguist/strategy/filename.rb
github-linguist-5.0.8 lib/linguist/strategy/filename.rb
github-linguist-5.0.7 lib/linguist/strategy/filename.rb
github-linguist-5.0.6 lib/linguist/strategy/filename.rb
github-linguist-5.0.5 lib/linguist/strategy/filename.rb
github-linguist-5.0.4 lib/linguist/strategy/filename.rb
github-linguist-5.0.3 lib/linguist/strategy/filename.rb
github-linguist-5.0.2 lib/linguist/strategy/filename.rb
github-linguist-5.0.0 lib/linguist/strategy/filename.rb