class

Linguist::Language

Inherits Reference < Object

Languages are defined in languages.yml.

Constructors

create(name, color) : Language
Source
new(name : String, color : String | Nil)
Source

Class methods

all

Get all Languages

Source
colors

A List of languages with assigned colors.

Source
find_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

Instance methods

color

a hex color String

Source
name
Source