mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Now that all our grammars are licensed (or grandfathered in), we can distribute them as part of the standard github-linguist gem. This makes it easier for projects to get up and running with Linguist.
11 lines
234 B
Ruby
11 lines
234 B
Ruby
module Linguist
|
|
module Grammars
|
|
# Get the path to the directory containing the language grammar JSON files.
|
|
#
|
|
# Returns a String.
|
|
def self.path
|
|
File.expand_path("../../../grammars", __FILE__)
|
|
end
|
|
end
|
|
end
|