Class: Factoid::Value::EntitoidInterpreter
- Inherits:
-
Object
- Object
- Factoid::Value::EntitoidInterpreter
- Defined in:
- lib/factoid/value.rb
Class Method Summary collapse
Class Method Details
.accept?(type, value) ⇒ Boolean
55 56 57 |
# File 'lib/factoid/value.rb', line 55 def self.accept?(type, value) return !value.xpath('./f:*', NS).empty? end |
.interpret(type, value) ⇒ Object
59 60 61 62 63 64 65 66 |
# File 'lib/factoid/value.rb', line 59 def self.interpret(type, value) require 'factoid/xml' # FIXME: allow also complete entitoids elem = value.at('./f:*', NS) return EntitoidRef.from_xml(elem) end |