class Bio::BioAlignment::Element
Simple element that can be queried
Constants
- GAP
- UNDEFINED
Public Class Methods
new(c)
click to toggle source
# File lib/bio-alignment/elements.rb, line 11 def initialize c @c = c @c.freeze end
Public Instance Methods
==(other)
click to toggle source
# File lib/bio-alignment/elements.rb, line 24 def == other to_s == other.to_s end
clone()
click to toggle source
# File lib/bio-alignment/elements.rb, line 27 def clone e = self.dup if e.state != nil e.state = e.state.clone end e end
gap?()
click to toggle source
# File lib/bio-alignment/elements.rb, line 15 def gap? @c == GAP end
to_s()
click to toggle source
# File lib/bio-alignment/elements.rb, line 21 def to_s @c end
undefined?()
click to toggle source
# File lib/bio-alignment/elements.rb, line 18 def undefined? @c == 'X' end