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.



218
219
220
# File 'lib/bio/db/sam.rb', line 218

def tag
  @tag
end

#typeObject

Returns the value of attribute type.



218
219
220
# File 'lib/bio/db/sam.rb', line 218

def type
  @type
end

#valueObject

Returns the value of attribute value.



218
219
220
# File 'lib/bio/db/sam.rb', line 218

def value
  @value
end

Instance Method Details

#set(str) ⇒ Object



219
220
221
222
223
224
# File 'lib/bio/db/sam.rb', line 219

def set(str)
  v = str.split(":")
  @tag   = v[0]
  @type  = v[1]
  @value = v[2]
end