Module: Linguist::Grammars

Defined in:
lib/linguist/grammars.rb

Class Method Summary collapse

Class Method Details

.pathObject

Get the path to the directory containing the language grammar JSON files.

Returns a String.



6
7
8
# File 'lib/linguist/grammars.rb', line 6

def self.path
  File.expand_path("../../../grammars", __FILE__)
end