Creates a new module with a string left justified to the length given in nn
# File lib/bio/db/pdb/pdb.rb, line 99defself.[](nn)
m = Module.newm.module_eval%{
@@nn = nn
def self.new(str)
str.to_s.gsub(/\s+\z/, '').ljust(@@nn)[0, @@nn]
end
}mend
new(str)click to toggle source
# File lib/bio/db/pdb/pdb.rb, line 93defself.new(str)
str.to_s.gsub(/\s+\z/, '')
end