Module: Bio::BioAlignment::MarkState

Included in:
ElementState
Defined in:
lib/bio-alignment/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#markedObject

Returns the value of attribute marked.



26
27
28
# File 'lib/bio-alignment/state.rb', line 26

def marked
  @marked
end

Instance Method Details

#mark!Object



28
29
30
# File 'lib/bio-alignment/state.rb', line 28

def mark!
  @marked = true
end

#marked?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/bio-alignment/state.rb', line 36

def marked?
  @marked == true
end

#to_sObject



40
41
42
# File 'lib/bio-alignment/state.rb', line 40

def to_s
  (marked? ? 'X' : '.')
end

#unmark!Object



32
33
34
# File 'lib/bio-alignment/state.rb', line 32

def unmark!
  @marked = false
end