Method: Bio::PDB#jrnl

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

#jrnl(sub_record = nil) ⇒ Object

Gets JRNL records. If no arguments, it returns all JRNL records as a hash. If sub record name is specified, it returns only corresponding records as an array of Bio::PDB::Record instances.



1729
1730
1731
1732
1733
1734
# File 'lib/bio/db/pdb/pdb.rb', line 1729

def jrnl(sub_record = nil)
  unless defined?(@jrnl)
    @jrnl = make_hash(self.record('JRNL'), :sub_record)
  end
  sub_record ? @jrnl[sub_record] : @jrnl
end