module Bio::PDB::DataType::Pdb_SymOP
Public Class Methods
Source
# File lib/bio/db/pdb/pdb.rb 100 def self.[](nn) 101 m = Module.new 102 m.module_eval %Q{ 103 @@nn = nn 104 def self.new(str) 105 str.to_s.gsub(/\s+\z/, '').ljust(@@nn)[0, @@nn] 106 end 107 } 108 m 109 end
Creates a new module with a string left justified to the length given in nn
Source
# File lib/bio/db/pdb/pdb.rb 94 def self.new(str) 95 str.to_s.gsub(/\s+\z/, '') 96 end