Languages are defined in languages.yml.
Constructors
new(name : String, color : String | Nil)
SourceClass methods
colors
A List of languages with assigned colors.
Sourcefind_by_name(name :
String) :
Language |
Nil Look up Language by its proper name.
Linguist::Language.find_by_name("ruby")
=> #<Linguist::Language:0x7f9f83175e80 @name="Ruby", @color="#701516">
Source