Module | Bio::PDB::DataType::Pdb_String |
In: |
lib/bio/db/pdb/pdb.rb
|
Creates a new module with a string left justified to the length given in nn
# File lib/bio/db/pdb/pdb.rb, line 98 98: def self.[](nn) 99: m = Module.new 100: m.module_eval %Q{ 101: @@nn = nn 102: def self.new(str) 103: str.to_s.gsub(/\s+\z/, '').ljust(@@nn)[0, @@nn] 104: end 105: } 106: m 107: end