mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add colorize
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
require 'albino'
|
||||
require 'yaml'
|
||||
|
||||
module Linguist
|
||||
@@ -21,6 +22,10 @@ module Linguist
|
||||
aliases.first
|
||||
end
|
||||
|
||||
def colorize(text)
|
||||
Albino.colorize(text, to_s)
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
eql?(other)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user