Module: Bio::PDB::DataType::Pdb_Real
- Defined in:
- lib/bio/db/pdb/pdb.rb
Class Method Summary collapse
Class Method Details
.[](fmt) ⇒ Object
129 130 131 132 133 134 135 136 137 138 |
# File 'lib/bio/db/pdb/pdb.rb', line 129 def self.[](fmt) m = Module.new m.module_eval %Q{ @@format = fmt def self.new(str) str.to_f end } m end |
.new(str) ⇒ Object
139 140 141 |
# File 'lib/bio/db/pdb/pdb.rb', line 139 def self.new(str) str.to_f end |