Module: Chem::KCFRPairType
- Defined in:
- lib/chem/db/types/type_kcf.rb
Class Method Summary collapse
Class Method Details
.detect_file(file) ⇒ Object
30 31 32 |
# File 'lib/chem/db/types/type_kcf.rb', line 30 def self.detect_file file File.extname(file) == '.kcf' && /A\d+/.match(file) end |
.detect_type(type) ⇒ Object
39 40 41 |
# File 'lib/chem/db/types/type_kcf.rb', line 39 def self.detect_type type type == :kcf_rpair end |
.parse(file) ⇒ Object
34 35 36 37 |
# File 'lib/chem/db/types/type_kcf.rb', line 34 def self.parse file require 'chem/db/kcf_rpair' Chem::KCF::RPairMolecule.new(File.open(file)) end |