Method: Bio::Alignment::PropertyMethods#set_all_property

Defined in:
lib/bio/alignment.rb

#set_all_property(hash) ⇒ Object

Sets properties from given hash. hash would be a return value of get_character method.



148
149
150
151
152
153
154
# File 'lib/bio/alignment.rb', line 148

def set_all_property(hash)
  @gap_regexp   = hash[:gap_regexp]   if hash.has_key?(:gap_regexp)
  @gap_char     = hash[:gap_char]     if hash.has_key?(:gap_char)
  @missing_char = hash[:missing_char] if hash.has_key?(:missing_char)
  @seqclass     = hash[:seqclass]     if hash.has_key?(:seqclass)
  self
end