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 = {} path = [:path] || File.join(DICTIONARY_PATH, .fetch(:language, 'en').to_s + '.xml') @xml = Nokogiri::XML(File.read(path)) end |