class OboParser::OboParser::Term

TODO: likely deprecate and run with one model (Stanza)

Attributes

relationships[RW]

Public Class Methods

new(tags) click to toggle source
Calls superclass method OboParser::OboParser::Stanza::new
# File lib/obo_parser.rb, line 107
def initialize(tags)
 super
 @relationships = [] 
 anonymous_tags = [] 
 # Loop through "unclaimed" tags and reference those specific to Term
 while @other_tags.size != 0
   t = @other_tags.shift
   case t.tag
  
   when 'relationship'
     @relationships.push([t.relation, t.related_term])
   else
     anonymous_tags.push(t)
   end
 end
 @other_tags = anonymous_tags
end