Class: BioInterchange::TextMining::PubAnnosJSONReader
- Defined in:
- lib/biointerchange/textmining/pubannos_json_reader.rb
Instance Method Summary collapse
-
#deserialize(inputstream) ⇒ Object
Deserialize a PubAnnotations JSON object.
Methods inherited from TMReader
Methods inherited from Reader
Constructor Details
This class inherits a constructor from BioInterchange::TextMining::TMReader
Instance Method Details
#deserialize(inputstream) ⇒ Object
Deserialize a PubAnnotations JSON object.
inputstream
-
Input IO stream to deserialize
32 33 34 35 36 37 38 39 40 |
# File 'lib/biointerchange/textmining/pubannos_json_reader.rb', line 32 def deserialize(inputstream) if inputstream.kind_of?(IO) then pubannos(inputstream.read) elsif inputstream.kind_of?(String) then pubannos(inputstream) else super(inputstream) end end |