Module: Bio::BioAlignment::MaskState
- Included in:
- ElementMaskedState
- Defined in:
- lib/bio-alignment/state.rb
Instance Attribute Summary collapse
-
#masked ⇒ Object
Returns the value of attribute masked.
Instance Method Summary collapse
Instance Attribute Details
#masked ⇒ Object
Returns the value of attribute masked.
46 47 48 |
# File 'lib/bio-alignment/state.rb', line 46 def masked @masked end |
Instance Method Details
#mask! ⇒ Object
48 49 50 |
# File 'lib/bio-alignment/state.rb', line 48 def mask! @masked = true end |
#masked? ⇒ Boolean
56 57 58 |
# File 'lib/bio-alignment/state.rb', line 56 def masked? @masked == true end |
#to_s ⇒ Object
60 61 62 |
# File 'lib/bio-alignment/state.rb', line 60 def to_s (masked? ? 'X' : '.') end |
#unmask! ⇒ Object
52 53 54 |
# File 'lib/bio-alignment/state.rb', line 52 def unmask! @masked = false end |