Class: BioInterchange::TextMining::PubAnnosJSONReader

Inherits:
TMReader
  • Object
show all
Defined in:
lib/biointerchange/textmining/pubannos_json_reader.rb

Instance Method Summary collapse

Methods inherited from TMReader

#initialize, #postponed?

Methods inherited from Reader

#initialize

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