class Linguist::Language
- Linguist::Language
- Reference
- Object
Overview
Languages are defined in languages.yml
.
Defined in:
lib/linguist/language.crConstructors
Class Method Summary
-
.all : Array(Language)
Get all Languages
-
.colors : Array(Language)
A List of languages with assigned colors.
-
.find_by_name(name : String) : Language | Nil
Look up Language by its proper name.
Instance Method Summary
-
#color : String?
a hex color String
- #name : String
Constructor Detail
Class Method Detail
Look up Language by its proper name.
Linguist::Language.find_by_name("ruby")
=> #<Linguist::Language:0x7f9f83175e80 @name="Ruby", @color="#701516">