module Scorm2004::Manifest
Constants
- NS
Public Class Methods
parse(*args)
click to toggle source
@overload parse(manifest_file)
Parse and validate a manifest file @param [String, IO] manifest_file manifest_file may be a String, or any object that responds to read and close such as an IO, or StringIO. @raise This method raises an instance of Scorm2004::Manifest::Error's subclass if validation fails. @return [Scorm2004::Manifest::Manifest] @see Scorm2004.Manifest
# File lib/scorm2004/manifest.rb, line 92 def self.parse(*args) manifest_visitor = Scorm2004::Manifest::Manifest.new Nokogiri::XML(*args) { |config| config.strict.noent }.root.accept manifest_visitor end