Class: FinalCutPro::XMLParser::Document
- Defined in:
- lib/final_cut_pro/xml_parser/document.rb
Instance Attribute Summary
Attributes inherited from Common
Class Method Summary collapse
Methods inherited from Common
#initialize, #is_clip?, #is_fcpxml?, #is_project?, #is_sequence?, #is_xmeml?, #root, #root_type, #to_hash, #top_level_container, #version, xml_as_document, #xml_as_document, #xml_document, #xml_node_to_hash
Constructor Details
This class inherits a constructor from FinalCutPro::XMLParser::Common
Class Method Details
.load(xml, options = { }) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/final_cut_pro/xml_parser/document.rb', line 9 def self.load(xml, = { }) doc = new(xml, = { }) return XMEML::Version5.new(doc.xml_document, = { }) if doc.is_xmeml? return FCPXML::Version1.new(doc.xml_document, = { }) if doc.is_fcpxml? return false end |