Method: Qti::V1::Models::Interactions::NumericInteraction.matches
- Defined in:
- lib/qti/v1/models/interactions/numeric_interaction.rb
.matches(node, parent) ⇒ Object
This will know if a class matches
7 8 9 10 11 12 |
# File 'lib/qti/v1/models/interactions/numeric_interaction.rb', line 7 def self.matches(node, parent) first_match = node.at_xpath('.//xmlns:render_fib') return false unless first_match && first_match.attributes['fibtype']&.value == 'Decimal' return false if node.xpath('.//xmlns:render_fib').count > 1 new(node, parent) end |