# File rbot/language.rb, line 4 def initialize(language, file="") @language = language if file.empty? file = File.dirname(__FILE__) + "/languages/#{@language}.lang" end unless(FileTest.exist?(file)) raise "no such language: #{@language} (no such file #{file})" end @file = file scan end