Class: Bio::BioAlignment::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/bio-alignment/sequence.rb

Overview

Simple element that can be queried

Instance Method Summary collapse

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/bio-alignment/sequence.rb', line 9

def gap?
  @c == '-'
end

#to_sObject



12
13
14
# File 'lib/bio-alignment/sequence.rb', line 12

def to_s
  @c
end