Module: Chem::Type::XyzType
- Defined in:
- lib/chem/db/types/type_xyz.rb
Class Method Summary collapse
Class Method Details
.detect_file(file) ⇒ Object
7 8 9 |
# File 'lib/chem/db/types/type_xyz.rb', line 7 def self.detect_file file File.extname(file) == '.xyz' end |
.detect_type(type) ⇒ Object
17 18 19 |
# File 'lib/chem/db/types/type_xyz.rb', line 17 def self.detect_type type type == :xyz end |
.parse(file) ⇒ Object
11 12 13 14 15 |
# File 'lib/chem/db/types/type_xyz.rb', line 11 def self.parse file require 'chem/db/xyz.rb' mol = XYZ::XyzMolecule.new mol.open_xyz file end |