From 6f22ca4fa0024d5d441a8f5076cd15faadff5f00 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sat, 21 May 2011 20:52:29 -0500 Subject: [PATCH] Add Language hash --- lib/linguist/language.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/linguist/language.rb b/lib/linguist/language.rb index 743fd30b..8cf8089b 100644 --- a/lib/linguist/language.rb +++ b/lib/linguist/language.rb @@ -113,6 +113,10 @@ module Linguist def eql?(other) equal?(other) end + + def hash + name.hash + end end popular = YAML.load_file(File.expand_path("../popular.yml", __FILE__))