Class: Bio::FANTOM::MaXML::Annotation

Inherits:
Bio::FANTOM::MaXML show all
Defined in:
lib/bio/db/fantom.rb

Overview

class MaXML::Annotations

Defined Under Namespace

Classes: DataSrc

Constant Summary

Constants inherited from Bio::FANTOM::MaXML

DELIMITER, Data_XPath

Instance Attribute Summary

Attributes inherited from Bio::FANTOM::MaXML

#elem

Instance Method Summary collapse

Methods inherited from Bio::FANTOM::MaXML

#gsub_entities, #initialize, #to_s

Methods inherited from DB

#exists?, #fetch, #get, open, #tags

Constructor Details

This class inherits a constructor from Bio::FANTOM::MaXML

Instance Method Details

#datasrcObject



364
365
366
367
368
369
370
371
372
373
374
# File 'lib/bio/db/fantom.rb', line 364

def datasrc
  unless defined?(@datasrc)
    @datasrc = []
    @elem.each_element('datasrc') do |e|
      text = e.text
      href = e.attributes['href']
      @datasrc << DataSrc.new(gsub_entities(text), gsub_entities(href))
    end
  end
  @datasrc
end

#entry_idObject



352
353
354
# File 'lib/bio/db/fantom.rb', line 352

def entry_id
  nil
end