Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
peterc committed Sep 29, 2008
1 parent 0a550fa commit f987ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whatlanguage.rb
Expand Up @@ -13,7 +13,7 @@ class WhatLanguage
def initialize(options = {})
languages_folder = File.join(File.dirname(__FILE__), "..", "lang")
Dir.entries(languages_folder).grep(/\.lang/).each do |lang|
@@data[lang[/\w+/].to_sym] ||= BloominSimple.from_dump(File.read(File.join(languages_folder, lang)), &HASHER)
@@data[lang[/\w+/].to_sym] ||= BloominSimple.from_dump(File.new(File.join(languages_folder, lang), 'rb').read, &HASHER)
end
end

Expand Down

0 comments on commit f987ed3

Please sign in to comment.