Class: OboParser::OboParser::Typedef

Inherits:
Stanza
  • Object
show all
Defined in:
lib/obo_parser.rb

Instance Attribute Summary

Attributes inherited from Stanza

#def, #id, #name, #other_tags

Instance Method Summary collapse

Methods inherited from Stanza

#tags_named

Constructor Details

#initialize(tags) ⇒ Typedef

Returns a new instance of Typedef.



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'lib/obo_parser.rb', line 129

def initialize(tags)
  super
  #anonymous_tags = [] 
  ## Loop through "unclaimed" tags and reference those specific to Typedef
  #while @other_tags.size != 0
  #  t = @other_tags.shift
  #  case t.tag
  #  when 'def' 
  #    @def = t
  #  else
  #    anonymous_tags.push(t)
  #  end
  #  @other_tags = anonymous_tags
  #end
end