Module Bio::PDB::DataType::Pdb_LString
In: lib/bio/db/pdb/pdb.rb  (CVS)

Methods

[]   new  

Public Class methods

[Source]

# File lib/bio/db/pdb/pdb.rb, line 111
        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

[Source]

# File lib/bio/db/pdb/pdb.rb, line 121
        def self.new(str)
          String.new(str.to_s)
        end

[Validate]