Class: Bio::DB::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/db/sam.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tagObject

Returns the value of attribute tag.



545
546
547
# File 'lib/bio/db/sam.rb', line 545

def tag
  @tag
end

#typeObject

Returns the value of attribute type.



545
546
547
# File 'lib/bio/db/sam.rb', line 545

def type
  @type
end

#valueObject

Returns the value of attribute value.



545
546
547
# File 'lib/bio/db/sam.rb', line 545

def value
  @value
end

Instance Method Details

#set(str) ⇒ Object



546
547
548
549
550
# File 'lib/bio/db/sam.rb', line 546

def set(str)
  @tag   = str[0..1]
  @type  = str[3]
  @value = str[5..-1]
end