Class: Qti::V2::Models::Base

Inherits:
Models::Base show all
Defined in:
lib/qti/v2/models/base.rb

Constant Summary collapse

BODY_ELEMENTS_CSS =
%w[
  atomicBlock
  atomicInline
  caption
  choice
  col
  colgroup
  div
  dl
  dlElement
  hr
  img
  li
  object
  ol
  p
  printedVariable
  prompt
  simpleBlock
  simpleInline
  table
  tableCell
  tbody
  templateElement
  tfoot
  thead
  tr
  ul
  infoControl
].join(',').freeze
INTERACTION_ELEMENTS_CSS =
%w[
  blockInteraction
  customInteraction
  inlineInteraction
  positionObjectInteraction
  endAttemptInteraction
  inlineChoiceInteraction
  textEntryInteraction
  associateInteraction
  choiceInteraction
  drawingInteraction
  extendedTextInteraction
  gapMatchInteraction
  graphicInteraction
  hottextInteraction
  matchInteraction
  mediaInteraction
  orderInteraction
  sliderInteraction
  uploadInteraction
].join(',').freeze
CHOICE_ELEMENTS_CSS =
%w[
  simpleChoice
].join(',').freeze

Instance Attribute Summary

Attributes inherited from Models::Base

#doc, #manifest, #package_root, #path, #resource

Instance Method Summary collapse

Methods inherited from Models::Base

#css_with_single_check, from_path!, #initialize, #parse_html, #parse_xml, #preprocess_xml_doc, #raise_unsupported, #remap_href_path, #sanitize_content!, #xpath_with_single_check

Constructor Details

This class inherits a constructor from Qti::Models::Base

Instance Method Details

#qti_versionObject



62
63
64
# File 'lib/qti/v2/models/base.rb', line 62

def qti_version
  2
end