Module: Bio::PDB::DataType::Pdb_Specification_list

Defined in:
lib/bio/db/pdb/pdb.rb

Class Method Summary collapse

Class Method Details

.new(str) ⇒ Object


84
85
86
87
88
# File 'lib/bio/db/pdb/pdb.rb', line 84

def self.new(str)
  a = str.to_s.strip.split(/\;\s*/)
  a.collect! { |x| x.split(/\:\s*/, 2) }
  a
end