module Bio::PDB::DataType::Pdb_LString

Public Class Methods

[](nn) click to toggle source
# File lib/bio/db/pdb/pdb.rb, line 112
def self.[](nn)
  m = Module.new
  m.module_eval %Q{
    @@nn = nn
    def self.new(str)
      str.to_s.ljust(@@nn)[0, @@nn]
    end
  }
  m
end
new(str) click to toggle source
# File lib/bio/db/pdb/pdb.rb, line 122
def self.new(str)
  String.new(str.to_s)
end