class OboParser::Tokens::DisjointFromTag

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 168
def initialize(str)
  @tag = 'relationship'
  @relation = 'disjoint_from'
  @related_term, @comment = str.split(/\s/,2)
  @comment ||= ""
  @comment.gsub!(/\A!\s*/, '')
  [@relation, @related_term, @comment].map(&:strip!)
  @xrefs = [] 
end