Class: Bio::DB::Tag
- Inherits:
-
Object
- Object
- Bio::DB::Tag
- Defined in:
- lib/bio/db/sam.rb
Instance Attribute Summary collapse
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#tag ⇒ Object
Returns the value of attribute tag.
218 219 220 |
# File 'lib/bio/db/sam.rb', line 218 def tag @tag end |
#type ⇒ Object
Returns the value of attribute type.
218 219 220 |
# File 'lib/bio/db/sam.rb', line 218 def type @type end |
#value ⇒ Object
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 |