Method: Bio::PDB::Record.create_definition_hash

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

.create_definition_hashObject

creates definition hash from current classes constants



439
440
441
442
443
444
445
446
447
448
449
# File 'lib/bio/db/pdb/pdb.rb', line 439

def self.create_definition_hash
  hash = {}
  constants.each do |x|
    x = x.intern # keep compatibility both Ruby 1.8 and 1.9
    hash[x] = const_get(x) if /\A[A-Z][A-Z0-9]+\z/ =~ x.to_s
  end
  if x = const_get(:Default) then
    hash.default = x
  end
  hash
end