Method: OTS::Grader#initialize

Defined in:
lib/ots/grader.rb

#initialize(options = {}) ⇒ Grader

Returns a new instance of Grader.



5
6
7
8
# File 'lib/ots/grader.rb', line 5

def initialize options = {}
  path = options[:path] || File.join(DICTIONARY_PATH, options.fetch(:language, 'en').to_s + '.xml')
  @xml = Nokogiri::XML(File.read(path))
end