class OboParser::Tokens::RelationshipTag

Attributes

comment[R]
relation[R]
tag[R]
xrefs[R]

Public Class Methods

new(str) click to toggle source
# File lib/obo_parser/tokens.rb, line 138
def initialize(str)
  @tag = 'relationship'
  @xrefs = [] 
  @relation, @related_term = str.split(/\s/,3)

  str =~ /\s+!\s+(.*)\s*\n*/i
  @comment = $1

  @comment ||= ""
  [@relation, @related_term, @comment].map(&:strip!)
end