Class: OboParser::OboParser::Typedef
Instance Attribute Summary
Attributes inherited from Stanza
#def, #id, #name, #other_tags
Instance Method Summary collapse
-
#initialize(tags) ⇒ Typedef
constructor
A new instance of Typedef.
Methods inherited from Stanza
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() 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 |