From b78bdc6f8ee59ff65ffcf135d8a535879770ea0a Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Tue, 24 May 2011 11:45:57 -0500 Subject: [PATCH] Add Language#to_s --- lib/linguist/language.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/linguist/language.rb b/lib/linguist/language.rb index 8cf8089b..724f2c9f 100644 --- a/lib/linguist/language.rb +++ b/lib/linguist/language.rb @@ -106,6 +106,10 @@ module Linguist lexer.colorize_without_wrapper(text) end + def to_s + name + end + def ==(other) eql?(other) end