Module | Bio::PDB::DataType::Pdb_LString
In: | lib/bio/db/pdb/pdb.rb

### Methods

[] new

### Public Class methods

[](nn)

[Source]

         # File lib/bio/db/pdb/pdb.rb, line 111
    111:         def self.[](nn)
    112:           m = Module.new
    113:           m.module_eval %Q{
    114:             @@nn = nn
    115:             def self.new(str)
    116:               str.to_s.ljust(@@nn)[0, @@nn]
    117:             end
    118:           }
    119:           m
    120:         end

new(str)

[Source]

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

[Validate]