module Bio::PDB::DataType::Pdb_LString

Public Class Methods

[](nn) click to toggle source
    # File lib/bio/db/pdb/pdb.rb
112 def self.[](nn)
113   m = Module.new
114   m.module_eval %Q{
115     @@nn = nn
116     def self.new(str)
117       str.to_s.ljust(@@nn)[0, @@nn]
118     end
119   }
120   m
121 end
new(str) click to toggle source
    # File lib/bio/db/pdb/pdb.rb
122 def self.new(str)
123   String.new(str.to_s)
124 end