Module: Bio::BioAlignment::MaskState

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#maskedObject

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

Returns:

  • (Boolean)


56
57
58
# File 'lib/bio-alignment/state.rb', line 56

def masked?
  @masked == true
end

#to_sObject



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