module Bio::PDB::ModelFinder

methods to access models

XXX#each_model must be defined.

Bio::PDB::ModelFinder is included by Bio::PDB::PDB.

Public Instance Methods

find_model() { |model| ... } click to toggle source

returns an array containing all chains for which given block is not false (similar to Enumerable#find_all).

# File lib/bio/db/pdb/utils.rb, line 232
def find_model
  array = []
  self.each_model do |model|
    array.push(model) if yield(model)
  return array