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.
545 546 547 |
# File 'lib/bio/db/sam.rb', line 545 def tag @tag end |
#type ⇒ Object
Returns the value of attribute type.
545 546 547 |
# File 'lib/bio/db/sam.rb', line 545 def type @type end |
#value ⇒ Object
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 |