Class: Bio::BioAlignment::Element
- Inherits:
-
Object
- Object
- Bio::BioAlignment::Element
- Defined in:
- lib/bio-alignment/sequence.rb
Overview
Simple element that can be queried
Instance Method Summary collapse
- #gap? ⇒ Boolean
-
#initialize(c) ⇒ Element
constructor
A new instance of Element.
- #to_s ⇒ Object
Constructor Details
#initialize(c) ⇒ Element
Returns a new instance of Element.
6 7 8 |
# File 'lib/bio-alignment/sequence.rb', line 6 def initialize c @c = c end |
Instance Method Details
#gap? ⇒ Boolean
9 10 11 |
# File 'lib/bio-alignment/sequence.rb', line 9 def gap? @c == '-' end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/bio-alignment/sequence.rb', line 12 def to_s @c end |