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

### Methods

[] new

### Public Class methods

[](nn)

Creates a new module with a string left justified to the length given in nn

[Source]

         # File lib/bio/db/pdb/pdb.rb, line 98
     98:         def self.[](nn)
     99:           m = Module.new
    100:           m.module_eval %Q{
    101:             @@nn = nn
    102:             def self.new(str)
    103:               str.to_s.gsub(/\s+\z/, '').ljust(@@nn)[0, @@nn]
    104:             end
    105:           }
    106:           m
    107:         end

new(str)

[Source]

        # File lib/bio/db/pdb/pdb.rb, line 92
    92:         def self.new(str)
    93:           str.to_s.gsub(/\s+\z/, '')
    94:         end

[Validate]