Module: Bio::BioAlignment::MarkState
- Included in:
- ElementState
- Defined in:
- lib/bio-alignment/state.rb
Instance Attribute Summary collapse
-
#marked ⇒ Object
Returns the value of attribute marked.
Instance Method Summary collapse
Instance Attribute Details
#marked ⇒ Object
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
36 37 38 |
# File 'lib/bio-alignment/state.rb', line 36 def marked? @marked == true end |
#to_s ⇒ Object
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 |